Commit de09a0ee authored by houdong's avatar houdong

有奖赛首页

parent 824993b3
......@@ -445,7 +445,11 @@ class IndexAction extends IdentityAction {
// echo $ucData['user_id'];exit;
$joinRes=D('Group')->uc_join_group(array('userId'=>$ucData['user_id'],'userName'=>$ucData['user_name'],'groupId'=>$groupId,'grade'=>0,'teamId'=>$groupId));
//钱包
$wallet=M('Wallet')->where(['user_id'=>$userId])->find();
if(empty($wallet)){
M('Wallet')->add(['user_id'=>$ucData['user_id'],'user_name'=>$ucData['user_name'],'add_time'=>time()]);
}
//用户未加入大赛或已加入,但不在cofool_allex_user表,需要添加
if($joinRes['status']==0||$joinRes['joinStatus']==1){
......
......@@ -619,8 +619,8 @@ 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()]);
......
......@@ -29,7 +29,7 @@
<div class="data-top">
<table cellpadding="0" cellspacing="0">
<tr class="num-tr">
<td class="first-d">14000</td>
<td class="first-d">7800</td>
<empty name="wallet">
<td class="second-d no">钱包未开启</td>
<else/>
......
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