adjust
This commit is contained in:
parent
1bd28eaff6
commit
59bf24896c
@ -27,7 +27,7 @@ func (iga *InGameApi) PreOrder(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data := map[string]interface{}{}
|
data := map[string]interface{}{}
|
||||||
if f5.IsOnlineEnv() {
|
if !iga.isNopayChannel(reqJson.AccountId) {
|
||||||
ret := true
|
ret := true
|
||||||
data, ret = iga.checkSessionData(c, reqJson.AccountId)
|
data, ret = iga.checkSessionData(c, reqJson.AccountId)
|
||||||
if !ret {
|
if !ret {
|
||||||
@ -272,7 +272,7 @@ func (iga *InGameApi) OrderInfo(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !f5.IsOnlineEnv() {
|
if !iga.isNopayChannel(reqJson.AccountId) {
|
||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
ErrorCode int32 `json:"errcode"`
|
ErrorCode int32 `json:"errcode"`
|
||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg"`
|
||||||
@ -522,3 +522,12 @@ func (iga *InGameApi) getIP(c *gin.Context) (ip string) {
|
|||||||
|
|
||||||
return ip
|
return ip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (iga *InGameApi) isNopayChannel(accountId string) (ret bool) {
|
||||||
|
strs := strings.Split(accountId, "_")
|
||||||
|
if len(strs) < 2 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
return strs[0] == "6000"
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user