This commit is contained in:
hujiabin 2024-05-09 11:59:42 +08:00
parent 21d7085817
commit caa0e0c8a1
2 changed files with 24 additions and 1 deletions

View File

@ -20,8 +20,31 @@ class OutAppNft(object):
['!nfts', [NftInfo()], 'nft列表'],
]
},
{
'name': 'getWebInfo',
'desc': 'web信息',
'group': 'OutAppNft',
'url': 'webapp/index.php?c=OutAppNft&a=getWebInfo',
'params': [
['channel', '', 'channel'],
['openId', 0, 'openId'],
],
'response': [
_common.RspHead(),
['info', WebInfo(), 'info'],
]
},
]
class WebInfo(object):
def __init__(self):
self.fields = [
['loginVal', 0, '今日登录状态 1:登录 0:未登录'],
['battleTimes', '', '战斗次数'],
['winTimes', 0, '胜利次数'],
['kills', 0, '击杀数'],
['getGoldVal', 0, '获得金币数'],
]
class NftInfo(object):

View File

@ -41,7 +41,7 @@ class OutAppNftController extends BaseController {
}
public function getOpenIdInfo(){
public function getWebInfo(){
$channel = getReqVal('channel', '');
$openId = getReqVal('openId', '');
$accountId = BC_CHANNEL.'_'.$this->_getGameId().'_'.$channel.'_'.$openId;