def checkSmsBindCode(cls, rpath): userId = TyContext.RunHttp.getRequestParamInt('userId', 0) if userId > 0: isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params else: isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.doCheckSmsBindInfo(params, mo) return mo
def listUser(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.listUser(params, mo) return mo
def bindByTyID(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.bindByTyId(params, mo) return mo
def changePassword(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.changePassword(params, mo) return mo
def checkSmsVerifyCode(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.doCheckSmsVerifyCode(params, mo) return mo
def getGuestBindCode(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.getSmsBindCode(params, mo) return mo
def createGuest(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.createGuest(params, mo) return mo
def checkOnline(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() ReportUniversal.checkOnline(params, mo) return mo
def loginByToken(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: return params mo = TyContext.Cls_MsgPack() AccountUniversal.doLoginByToken(params, mo) mo = AccountUniversal.doCheckLoginStrategy(mo) return mo
def getGameLoginType(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) # if isReturn : # return params params = TyContext.RunHttp.convertArgsToDict() mo = TyContext.Cls_MsgPack() AccountUniversal.getGameLoginType(mo, params) return mo
def doConsume(cls, rpath): isReturn, params = AccountCheck.check_userv4(rpath) if isReturn: mo = TyContext.Cls_MsgPack() mo.setResult('code', 1) mo.setResult('info', "参数校验失败") return mo params = TyContext.RunHttp.convertToMsgPack() mo = ChargeUniversal.consume(params) return mo