|
|
@ -137,23 +137,21 @@ class SpendController extends ThinkController
|
|
|
|
$this->checkListOrCountAuthRestMap($map,["extend", "pay_order_number", "user_account"]);
|
|
|
|
$this->checkListOrCountAuthRestMap($map,["extend", "pay_order_number", "user_account"]);
|
|
|
|
$map1 = $map;
|
|
|
|
$map1 = $map;
|
|
|
|
$map1['pay_status'] = 1;
|
|
|
|
$map1['pay_status'] = 1;
|
|
|
|
$total = null_to_0(D(self::model_name)->where($map1)->sum('pay_amount'));
|
|
|
|
$total = null_to_0(SM(self::model_name)->where($map1)->sum('pay_amount'));
|
|
|
|
$ttotal = null_to_0(D(self::model_name)->where('pay_time' . total(1))->where(array('pay_status' => 1))->sum('pay_amount'));
|
|
|
|
|
|
|
|
$ytotal = null_to_0(D(self::model_name)->where('pay_time' . total(5))->where(array('pay_status' => 1))->sum('pay_amount'));
|
|
|
|
|
|
|
|
$this->assign('total', $total);
|
|
|
|
$this->assign('total', $total);
|
|
|
|
$this->assign('ttotal', $ttotal);
|
|
|
|
|
|
|
|
$this->assign('ytotal', $ytotal);
|
|
|
|
|
|
|
|
$this->meta_title = $this->m_title = '游戏充值';
|
|
|
|
$this->meta_title = $this->m_title = '游戏充值';
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Spend/lists', 'status' => 1])->find());
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Spend/lists', 'status' => 1])->find());
|
|
|
|
|
|
|
|
|
|
|
|
$data = D(self::model_name)->lists($_GET["p"], $map, $order);
|
|
|
|
$data = D(self::model_name)->lists($_GET["p"], $map, $order);
|
|
|
|
|
|
|
|
if(!empty($data['data'])){
|
|
|
|
$adminUsernameList = getAdminUsernameList(array_column($data['data'], 'market_admin_id'));
|
|
|
|
$adminUsernameList = getAdminUsernameList(array_column($data['data'], 'market_admin_id'));
|
|
|
|
foreach ($data['data'] as $key=>&$value ) {
|
|
|
|
foreach ($data['data'] as $key=>&$value ) {
|
|
|
|
($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
|
|
|
|
$value['market_admin_username'] = $adminUsernameList[$value['market_admin_id']] ?? '无';
|
|
|
|
$value['market_admin_username'] = $adminUsernameList[$value['market_admin_id']] ?? '无';
|
|
|
|
$value['is_check_str'] = D(self::model_name)::IsCheckStr[$value['is_check']];
|
|
|
|
$value['is_check_str'] = D(self::model_name)::IsCheckStr[$value['is_check']];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('showMarketAdmin', session('user_auth')['show_market_admin']);
|
|
|
|
$this->assign('showMarketAdmin', session('user_auth')['show_market_admin']);
|
|
|
|
$this->assign('showPromote', session('user_auth')['show_promote']);
|
|
|
|
$this->assign('showPromote', session('user_auth')['show_promote']);
|
|
|
|
$this->assign('isMarketAdmin', $isMarketAdmin);
|
|
|
|
$this->assign('isMarketAdmin', $isMarketAdmin);
|
|
|
|