Commit 386ab0aa authored by houdong's avatar houdong

有奖赛加钱包

parent c01b33c5
......@@ -618,6 +618,13 @@ class PkTopAction extends IdentityAction{
M('userinfo', " ", C('DB_CONFIG_MNCG3'))->add($initData);
}
D('Sms')->send(['mobile'=>$mobile,'content' =>$bmContent,'type'=>46],true,true);
//钱包
$wallet=M('Wallet')->where(['user_id'=>$userId])->find();
if(empty($wallet)){
M('Wallet')->add(['user_id'=>$userId,'user_name'=>$userName,'add_time'=>time()]);
}
return array('status'=>1,'info'=>'参赛成功','debug'=>$userId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment