Compare commits

...

4 Commits

Author SHA1 Message Date
sk ff04ab8e0f 解决冲突 2024-12-12 17:45:41 +08:00
sk aa9a92f4e9 fix:休闲平台 2024-12-12 17:41:55 +08:00
sk 60c1e80bdd fix:休闲平台 2024-12-12 16:11:12 +08:00
sk d6600c0e08 Revert "休闲平台登录修改"
This reverts commit 731b9857c1.
2024-12-12 14:41:09 +08:00
4 changed files with 15 additions and 17 deletions

View File

@ -328,8 +328,6 @@ const (
GainWayGuide2 = 117 // 竞技馆引导奖励
GainWayCompound = 118 // 道具合成消耗
GainWayCompoundGain = 119 // 道具合成获得
GainWayPlatformIn = 120 // 平台上分
GainWayPlatformOut = 121 // 平台下分
)
// 后台选择 金币变化类型 的充值 类型id号起始

View File

@ -693,6 +693,7 @@ func (this *SceneBaseStateTienLen) OnPlayerOp(s *base.Scene, p *base.Player, opc
// 玩家继续
if !playerEx.IsMarkFlag(base.PlayerState_Ready) {
playerEx.MarkFlag(base.PlayerState_Ready)
playerEx.SyncFlag()
}
// 扣房费
// 房主扣费
@ -1877,7 +1878,7 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) {
}
}
losePlayerCoin := losePlayer.GetCoin()
if !sceneEx.IsMatchScene() && !sceneEx.IsCustom() && losePlayerCoin < gainScore {
if !sceneEx.IsMatchScene() && losePlayerCoin < gainScore {
gainScore = losePlayerCoin
}
losePlayerScore = gainScore
@ -2021,7 +2022,7 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) {
}
}
lastWinPlayerCoin := lastWinPlayer.GetCoin()
if !sceneEx.IsMatchScene() && !sceneEx.IsCustom() && lastWinPlayerCoin < astWinGainScore {
if !sceneEx.IsMatchScene() && lastWinPlayerCoin < astWinGainScore {
astWinGainScore = lastWinPlayerCoin
}
lastWinPlayerScore = astWinGainScore
@ -2387,7 +2388,7 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) {
}
}
losePlayerCoin := playerEx.GetCoin()
if !sceneEx.IsMatchScene() && !sceneEx.IsCustom() && losePlayerCoin < gainScore {
if !sceneEx.IsMatchScene() && losePlayerCoin < gainScore {
gainScore = losePlayerCoin
}
winScore += gainScore
@ -2928,15 +2929,15 @@ func (this *SceneBilledStateTienLen) OnLeave(s *base.Scene) {
continue
}
if player_data.IsAuto() && !player_data.IsRob {
player_data.LeaveAutoState(s)
if !(s.IsMatchScene() || s.IsRankMatch()) {
sceneEx.PlayerLeave(player_data.Player, common.PlayerLeaveReason_AutoState, true)
hasLeave = true
}
continue
}
//if player_data.IsAuto() && !player_data.IsRob {
// player_data.LeaveAutoState(s)
//
// if !(s.IsMatchScene() || s.IsRankMatch()) {
// sceneEx.PlayerLeave(player_data.Player, common.PlayerLeaveReason_AutoState, true)
// hasLeave = true
// }
// continue
//}
}
if !hasLeave && !sceneEx.IsRobFightGame() && !sceneEx.IsMatchScene() {

View File

@ -64,7 +64,7 @@ message CSLogin {
int32 InviterId = 8; //ID
int32 ApkVer = 9; //apk版本号
int32 ResVer = 10; //
int32 LoginType = 11; // 0: 1 2 6,facebook 7: token登录
int32 LoginType = 11; // 0: 1 2 6,facebook
string PlatformTag = 12;//android包名或者ios标记
string DeviceOs = 13; //androidioswindows
string Promoter = 14; //广

View File

@ -2910,8 +2910,7 @@ func init() {
return common.ResponseTag_ParamError, jsonDataRsp
}
pack.Data.Url = fmt.Sprintf("%s?login_token=%s", model.GameParamData.PlatformClientAddr, tokenStr)
logger.Logger.Tracef("/api/platform/createUser pack.Data.Url : %v", pack.Data.Url)
pack.Data.Url = fmt.Sprintf("%s?access_token=%s", model.GameParamData.PlatformClientAddr, tokenStr)
task.New(nil, task.CallableWrapper(func(o *basic.Object) interface{} {
acc, retCode := model.AccountIsExist(AccountInfo.Username, "", "", "1", AccountInfo.Timestamp,