|
|
@ -84,11 +84,15 @@ class QueryController extends BaseController
|
|
|
|
$map['tab_spend.pay_time'] = ['between', [strtotime(I('begtime')), strtotime(I('endtime')) + 86399]];
|
|
|
|
$map['tab_spend.pay_time'] = ['between', [strtotime(I('begtime')), strtotime(I('endtime')) + 86399]];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (I('pay_way') !== null && I('pay_way') !== '') {
|
|
|
|
if (isset($_REQUEST['pay_way']) && $_REQUEST['pay_way'] !== '') {
|
|
|
|
if (I('pay_way') == 2) {
|
|
|
|
$payWay = intval(I('pay_way'));
|
|
|
|
$map['tab_spend.pay_way'] = ['in', '2,3,4'];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
if (in_array($payWay, array_keys(QueryController::$payWay))) {
|
|
|
|
$map['tab_spend.pay_way'] = I('pay_way');
|
|
|
|
if ($payWay == 2) {
|
|
|
|
|
|
|
|
$map['tab_spend.pay_way'] = ['in', '2,3,4'];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$map['tab_spend.pay_way'] = $payWay;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -668,7 +672,7 @@ class QueryController extends BaseController
|
|
|
|
'grand_id' => $promote['id'],
|
|
|
|
'grand_id' => $promote['id'],
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$ids = M('promote', 'tab_')->where($map)->getField('id', true);
|
|
|
|
$ids = M('promote', 'tab_')->where($map)->getField('id', true);
|
|
|
|
|
|
|
|
|
|
|
|
$subPromotes = M('promote', 'tab_')->field(['id', 'account', 'real_name'])->where(['parent_id' => $promote['id']])->select();
|
|
|
|
$subPromotes = M('promote', 'tab_')->field(['id', 'account', 'real_name'])->where(['parent_id' => $promote['id']])->select();
|
|
|
|
$games = $this->getGamesByPromote($promote);
|
|
|
|
$games = $this->getGamesByPromote($promote);
|
|
|
|
|
|
|
|
|
|
|
|