1
This commit is contained in:
parent
3ed27d9c12
commit
afaa2b19ea
@ -4,8 +4,8 @@
|
|||||||
* @apiGroup AA开发说明
|
* @apiGroup AA开发说明
|
||||||
* @apiVersion 0.0.1
|
* @apiVersion 0.0.1
|
||||||
* @apiSuccessExample {json} Success-Response:
|
* @apiSuccessExample {json} Success-Response:
|
||||||
* {
|
* 所有的协议都可能携带award和property_chg,award用来显示获得的东西,propery_chg用来更新本地数据
|
||||||
* }
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
@ -19,6 +19,7 @@ class Shop(object):
|
|||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['award', _common.Award(), '奖励信息'],
|
['award', _common.Award(), '奖励信息'],
|
||||||
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -99,3 +99,10 @@ class Award(object):
|
|||||||
self.fields = [
|
self.fields = [
|
||||||
['!items', [AwardItem()], '奖励物品列表']
|
['!items', [AwardItem()], '奖励物品列表']
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class PropertyChg(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['user_info', UserInfo(), '用户信息变更(用来更新本地客户端字段(有则更新无则不变))']
|
||||||
|
]
|
||||||
|
@ -105,7 +105,7 @@ class BaseAuthedController extends BaseController {
|
|||||||
{
|
{
|
||||||
SqlHelper::update
|
SqlHelper::update
|
||||||
($this->_getSelfMysql(),
|
($this->_getSelfMysql(),
|
||||||
'user',
|
't_user',
|
||||||
array(
|
array(
|
||||||
'account_id' => $this->_getAccountId()
|
'account_id' => $this->_getAccountId()
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user