This commit is contained in:
hujiabin 2024-09-26 14:27:40 +08:00
parent 8ce6791081
commit 63cfb918b2
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class Activity(object):
['invitation_code', 0, '邀请码'],
['invite_count', 0, '成功邀请人数'],
['bind_state', 0, '绑定状态 1:已绑 0:未绑'],
['reward_state', 0, '奖励状态 1:已领取 0:未领取'],
['!bind_rewards', [_common.AwardItem()], '绑定奖励'],
]
},{

View File

@ -37,10 +37,15 @@ class ActivityController extends BaseAuthedController {
if (UserInvitationCode::verifyAccountBind()){
$bindState = 1;
}
$rewardState = 0;
if (UserInvitationCode::verifyAccountReward()){
$rewardState = 1;
}
$this->_rspData(array(
'invitation_code' => $myCode,
'invite_count' => $count,
'bind_state' => $bindState,
'reward_state' => $rewardState,
'bind_rewards' => $rewards
));
}