1
This commit is contained in:
parent
8ce6791081
commit
63cfb918b2
@ -19,6 +19,7 @@ class Activity(object):
|
|||||||
['invitation_code', 0, '邀请码'],
|
['invitation_code', 0, '邀请码'],
|
||||||
['invite_count', 0, '成功邀请人数'],
|
['invite_count', 0, '成功邀请人数'],
|
||||||
['bind_state', 0, '绑定状态 1:已绑 0:未绑'],
|
['bind_state', 0, '绑定状态 1:已绑 0:未绑'],
|
||||||
|
['reward_state', 0, '奖励状态 1:已领取 0:未领取'],
|
||||||
['!bind_rewards', [_common.AwardItem()], '绑定奖励'],
|
['!bind_rewards', [_common.AwardItem()], '绑定奖励'],
|
||||||
]
|
]
|
||||||
},{
|
},{
|
||||||
|
@ -37,10 +37,15 @@ class ActivityController extends BaseAuthedController {
|
|||||||
if (UserInvitationCode::verifyAccountBind()){
|
if (UserInvitationCode::verifyAccountBind()){
|
||||||
$bindState = 1;
|
$bindState = 1;
|
||||||
}
|
}
|
||||||
|
$rewardState = 0;
|
||||||
|
if (UserInvitationCode::verifyAccountReward()){
|
||||||
|
$rewardState = 1;
|
||||||
|
}
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'invitation_code' => $myCode,
|
'invitation_code' => $myCode,
|
||||||
'invite_count' => $count,
|
'invite_count' => $count,
|
||||||
'bind_state' => $bindState,
|
'bind_state' => $bindState,
|
||||||
|
'reward_state' => $rewardState,
|
||||||
'bind_rewards' => $rewards
|
'bind_rewards' => $rewards
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user