Commit 2148e868 by 冷斌

update

parent 3e12f6c1
...@@ -296,82 +296,87 @@ class CoinrecordController extends AdminbaseController { ...@@ -296,82 +296,87 @@ class CoinrecordController extends AdminbaseController {
->select(); ->select();
$type=array("income"=>"收入","expend"=>"支出"); $type=array("income"=>"收入","expend"=>"支出");
$actions=array("sendgift"=>"赠送礼物","sendbarrage"=>"弹幕","loginbonus"=>"登录奖励","buyvip"=>"购买VIP","buycar"=>"购买坐骑","buyliang"=>"购买靓号",'game_bet'=>'游戏下注','game_return'=>'游戏退还','game_win'=>'游戏获胜','game_banker'=>'庄家收益','set_deposit'=>'上庄扣除','deposit_return'=>'下庄退还','roomcharge'=>'房间扣费','timecharge'=>'计时扣费','sendred'=>'发送红包','robred'=>'抢红包','buyguard'=>'开通守护','reg_reward'=>'注册奖励'); $actions=array("sendgift"=>"赠送礼物","sendbarrage"=>"弹幕","loginbonus"=>"登录奖励","buyvip"=>"购买VIP","buycar"=>"购买坐骑","buyliang"=>"购买靓号",'game_bet'=>'游戏下注','game_return'=>'游戏退还','game_win'=>'游戏获胜','game_banker'=>'庄家收益','set_deposit'=>'上庄扣除','deposit_return'=>'下庄退还','roomcharge'=>'房间扣费','timecharge'=>'计时扣费','sendred'=>'发送红包','robred'=>'抢红包','buyguard'=>'开通守护','reg_reward'=>'注册奖励');
foreach($lists as $k=>$v){ try{
$userinfo=$Users->field("user_nicename")->where("id='$v[uid]'")->find(); foreach($lists as $k=>$v){
$lists[$k]['userinfo']= $userinfo; $userinfo=$Users->field("user_nicename")->where("id='$v[uid]'")->find();
$touserinfo=$Users->field("user_nicename")->where("id='$v[touid]'")->find(); $lists[$k]['userinfo']= $userinfo;
$lists[$k]['touserinfo']= $touserinfo; $touserinfo=$Users->field("user_nicename")->where("id='$v[touid]'")->find();
$lists[$k]['touserinfo']= $touserinfo;
$lists[$k]['user_nicename']= $userinfo['user_nicename']."(".$v['uid'].")";
$lists[$k]['touser_nicename']= $touserinfo['user_nicename']."(".$v['touid'].")"; $lists[$k]['user_nicename']= $userinfo['user_nicename']."(".$v['uid'].")";
$lists[$k]['touser_nicename']= $touserinfo['user_nicename']."(".$v['touid'].")";
$action=$v['action'];
$lists[$k]['action']= $actions[$action]; $action=$v['action'];
$lists[$k]['type']= $type[$v['type']]; $lists[$k]['action']= $actions[$action];
$lists[$k]['type']= $type[$v['type']];
if($action=='sendgift'){
$giftinfo=$Gift->field("giftname")->where("id='$v[giftid]'")->find(); if($action=='sendgift'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo=$Gift->field("giftname")->where("id='$v[giftid]'")->find();
}else if($action=='loginbonus'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='第'.$v['giftid'].'天'; }else if($action=='loginbonus'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='第'.$v['giftid'].'天';
}else if($action=='sendbarrage'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='弹幕'; }else if($action=='sendbarrage'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='弹幕';
}else if($action=='game_bet' || $action=='game_return' || $action=='game_win' || $action=='game_brokerage' || $action=='game_banker'){ $lists[$k]['giftinfo']= $giftinfo;
$info=$Game->field('action')->where("id={$v['giftid']}")->find(); }else if($action=='game_bet' || $action=='game_return' || $action=='game_win' || $action=='game_brokerage' || $action=='game_banker'){
$giftinfo['giftname']=$game_action[$info['action']]; $info=$Game->field('action')->where("id={$v['giftid']}")->find();
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']=$game_action[$info['action']];
}else if($action=='set_deposit'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='上庄扣除'; }else if($action=='set_deposit'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='上庄扣除';
}else if($action=='deposit_return'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='下庄退还'; }else if($action=='deposit_return'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='下庄退还';
}else if($action=='roomcharge'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='房间扣费'; }else if($action=='roomcharge'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='房间扣费';
}else if($action=='timecharge'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='计时扣费'; }else if($action=='timecharge'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='计时扣费';
}else if($action=='buyvip'){ $lists[$k]['giftinfo']= $giftinfo;
$info=$Vip->field("name")->where("id='{$v[giftid]}'")->find(); }else if($action=='buyvip'){
$giftinfo['giftname']=$info['name']; $info=$Vip->field("name")->where("id='{$v[giftid]}'")->find();
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']=$info['name'];
}else if($action=='buycar'){ $lists[$k]['giftinfo']= $giftinfo;
$info=$Car->field("name")->where("id='{$v[giftid]}'")->find(); }else if($action=='buycar'){
$giftinfo['giftname']=$info['name']; $info=$Car->field("name")->where("id='{$v[giftid]}'")->find();
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']=$info['name'];
}else if($action=='buyliang'){ $lists[$k]['giftinfo']= $giftinfo;
$info=$Liang->field("name")->where("id='{$v[giftid]}'")->find(); }else if($action=='buyliang'){
$giftinfo['giftname']=$info['name']; $info=$Liang->field("name")->where("id='{$v[giftid]}'")->find();
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']=$info['name'];
}else if($action=='sendred'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='发送红包'; }else if($action=='sendred'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='发送红包';
}else if($action=='robred'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='抢红包'; }else if($action=='robred'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='抢红包';
}else if($action=='buyguard'){ $lists[$k]['giftinfo']= $giftinfo;
$info=$Guard->field("name")->where("id='{$v[giftid]}'")->find(); }else if($action=='buyguard'){
$giftinfo['giftname']=$info['name']; $info=$Guard->field("name")->where("id='{$v[giftid]}'")->find();
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']=$info['name'];
}else if($action=='reg_reward'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='注册奖励'; }else if($action=='reg_reward'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='注册奖励';
}else if($action=='luckgift'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='礼物中奖'; }else if($action=='luckgift'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='礼物中奖';
}else if($action=='jackpotwin'){ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='奖池中奖'; }else if($action=='jackpotwin'){
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='奖池中奖';
}else{ $lists[$k]['giftinfo']= $giftinfo;
$giftinfo['giftname']='未知'; }else{
$lists[$k]['giftinfo']= $giftinfo; $giftinfo['giftname']='未知';
$lists[$k]['giftinfo']= $giftinfo;
}
//{$vo['giftinfo']['giftname']} ( {$vo['giftid']} )
$lists[$k]['gift_behavior']= $giftinfo['giftname']."(".$v['giftid'].")";
$lists[$k]['addtime']=date("Y-m-d H:i:s",$v['addtime']);
} }
//{$vo['giftinfo']['giftname']} ( {$vo['giftid']} ) }catch (\Exception $exception) {
$lists[$k]['gift_behavior']= $giftinfo['giftname']."(".$v['giftid'].")"; var_dump($exception);
$lists[$k]['addtime']=date("Y-m-d H:i:s",$v['addtime']); die;
} }
$xlsName = "Excel"; $xlsName = "Excel";
......
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