Commit 9348dd0f authored by houdong's avatar houdong

Merge branch 'master' into 'houdong'

# Conflicts:
#   app/Tpl/Vip/Index/withdraw.html
parents c76aa83f 23c92ce5
...@@ -57,28 +57,28 @@ class IndexAction extends IdentityAction { ...@@ -57,28 +57,28 @@ class IndexAction extends IdentityAction {
//取最后获奖的18个用户 //取最后获奖的18个用户
$suffix = D('Userinfo')->getTable($this->GID); // $suffix = D('Userinfo')->getTable($this->GID);
$table =$suffix?'mncg_archive.userinfo'.$suffix:'mncg.userinfo'; // $table =$suffix?'mncg_archive.userinfo'.$suffix:'mncg.userinfo';
//
$where=array('sex'=>$this->GID,'new_phb'=>['gt',0],'zt'=>1,'monthzzl'=>['gt',150]); // $where=array('sex'=>$this->GID,'new_phb'=>['gt',0],'zt'=>1,'monthzzl'=>['gt',150]);
//测试时不用缓存->cache(true,cacheTime()) // //测试时不用缓存->cache(true,cacheTime())
$finalWinList = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->order('zongup desc')->limit(18)->cache(true,cacheTime())->select(); // $finalWinList = M($table, " ", C('DB_CONFIG_MNCG3'))->where($where)->order('zongup desc')->limit(18)->cache(true,cacheTime())->select();
$userids = array(); // $userids = array();
foreach ($finalWinList as $key => &$w) { // foreach ($finalWinList as $key => &$w) {
$userIDs = explode("X", $w['uid']); // $userIDs = explode("X", $w['uid']);
$w['user_id'] = $userIDs[1]; // $w['user_id'] = $userIDs[1];
$w['userUrl'] = tradeDetailLink($this->GID,3,$userIDs[1]); // $w['userUrl'] = tradeDetailLink($this->GID,3,$userIDs[1]);
$userids[] = $userIDs[1]; // $userids[] = $userIDs[1];
} // }
//取昵称 //取昵称
$nick_name_arry =getUser($userids,'nick');//// // $nick_name_arry =getUser($userids,'nick');////
foreach ($finalWinList as $key => &$value) { // foreach ($finalWinList as $key => &$value) {
$nick_name = $nick_name_arry[$value['user_id']]; // $nick_name = $nick_name_arry[$value['user_id']];
// $value['username'] = $nick_name?$nick_name:$value['username']; //// $value['username'] = $nick_name?$nick_name:$value['username'];
$value['username'] = $nick_name; // $value['username'] = $nick_name;
} // }
$this->assign('finalWinList',$finalWinList); // $this->assign('finalWinList',$finalWinList);
$this->assign($firstPageData); $this->assign($firstPageData);
$this->setValue($userId); $this->setValue($userId);
......
...@@ -228,7 +228,6 @@ ...@@ -228,7 +228,6 @@
} }
$(function(){ $(function(){
//支付成功的弹窗 //支付成功的弹窗
if('{$_GET.is_payok}'==1){ if('{$_GET.is_payok}'==1){
$(".mask").show(); $(".mask").show();
$("#popPaySucc").show(); $("#popPaySucc").show();
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<tr> <tr>
<td>提现</td> <td>提现</td>
<td class="withdraw-num green"><span class="num">¥{$vo.item_money}元</span></td> <td class="withdraw-num green"><span class="num">¥{$vo.item_money}元</span></td>
<td>{$vo.item_time}</td><td>已完成</td> <td>{$vo.item_time}</td><td><eq name="vo.status" value="1">已完成<else/>待审核</eq> </td>
</tr> </tr>
</foreach> </foreach>
<tr> <tr>
......
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