|
|
@@ -240,8 +240,9 @@ class GameLogic
|
|
|
'userame' => $this->wagetnModel->agent_pre.$this->paras['username'],
|
|
|
'gametype' => isset($this->paras['gametype']) ? trim( $this->paras['gametype'] ) : '',
|
|
|
'gamekind' => isset($this->paras['gamekind']) ? trim( $this->paras['gamekind'] ) : '',
|
|
|
- 'iframe' => isset($this->paras['iframe']) ? trim( $this->paras['iframe'] ) : -1 ,
|
|
|
+ 'iframe' => isset($this->paras['iframe']) ? intval(trim( $this->paras['iframe'] )) : -1 ,
|
|
|
'platformname' => isset($this->paras['platformname']) ? trim( $this->paras['platformname'] ) : '',
|
|
|
+ 'lang' => isset($this->paras['lang']) ? trim( $this->paras['lang'] ) : '',
|
|
|
'ip'=> GETIP(),
|
|
|
];
|
|
|
$model = new Wagent_clientgame_logModel();
|
|
|
@@ -290,7 +291,7 @@ class GameLogic
|
|
|
//获取某人体育游戏的统计数据
|
|
|
public function getMoneyBuyData($account,$databegin,$dataend){
|
|
|
$db = $GLOBALS['DB'] ;
|
|
|
- $ret1 = $db->select("select count(id) as counts,sum(money) as money, sum(prize_money) as money_buy from money_buy where account_name=:account and status in (1,2) and money_time>=:timebegin and money_time<=:timeend group by account_name ;",['account'=>$account,'timebegin'=>$databegin,'timeend'=>$dataend]);
|
|
|
+ $ret1 = $db->select("select count(id) as counts,sum(money) as money, sum(prize_money) as money_buy from money_buy_simplex where account_name=:account and status in (1,2) and money_time>=:timebegin and money_time<=:timeend group by account_name ;",['account'=>$account,'timebegin'=>$databegin,'timeend'=>$dataend]);
|
|
|
$ret2 = $db->select("select count(id) as counts,sum(money) as money, sum(prize_money) as money_buy from money_buy_str where account_name=:account and status in (1,2) and money_time>=:timebegin and money_time<=:timeend group by account_name ;",['account'=>$account,'timebegin'=>$databegin,'timeend'=>$dataend]);
|
|
|
|
|
|
$ret = ['counts'=>0,'money'=>0,'prize_money'=>0] ;
|