diff --git a/server/payserver/api/v1/ingame/ingame.go b/server/payserver/api/v1/ingame/ingame.go index 0b5df3c..116c6a4 100644 --- a/server/payserver/api/v1/ingame/ingame.go +++ b/server/payserver/api/v1/ingame/ingame.go @@ -27,7 +27,7 @@ func (iga *InGameApi) PreOrder(c *gin.Context) { } data := map[string]interface{}{} - if f5.IsOnlineEnv() { + if !iga.isNopayChannel(reqJson.AccountId) { ret := true data, ret = iga.checkSessionData(c, reqJson.AccountId) if !ret { @@ -272,7 +272,7 @@ func (iga *InGameApi) OrderInfo(c *gin.Context) { return } - if !f5.IsOnlineEnv() { + if !iga.isNopayChannel(reqJson.AccountId) { rspObj := struct { ErrorCode int32 `json:"errcode"` ErrMsg string `json:"errmsg"` @@ -522,3 +522,12 @@ func (iga *InGameApi) getIP(c *gin.Context) (ip string) { return ip } + +func (iga *InGameApi) isNopayChannel(accountId string) (ret bool) { + strs := strings.Split(accountId, "_") + if len(strs) < 2 { + return + } + + return strs[0] == "6000" +}