|
|
@ -118,7 +118,9 @@ class PromoteController extends BaseController
|
|
|
|
$promoteId = array(get_pid());
|
|
|
|
$promoteId = array(get_pid());
|
|
|
|
|
|
|
|
|
|
|
|
//计算当日用户充值数据
|
|
|
|
//计算当日用户充值数据
|
|
|
|
$map['_string'] = "promote_id = {$promote_id} or tab_promote.parent_id = {$promote_id} or tab_promote.grand_id = {$promote_id} ";
|
|
|
|
// $map['_string'] = "promote_id = {$promote_id} or tab_promote.parent_id = {$promote_id} or tab_promote.grand_id = {$promote_id} ";
|
|
|
|
|
|
|
|
//计算当日用户充值数据
|
|
|
|
|
|
|
|
$map['_string'] = "promote_id = {$promote_id} or tab_promote.parent_id = {$promote_id} or tab_promote.chain like '%/{$promote_id}/%' ";
|
|
|
|
|
|
|
|
|
|
|
|
$pay_time = " between 0 and ".time();
|
|
|
|
$pay_time = " between 0 and ".time();
|
|
|
|
$spendData = $this->caculateSpend($pay_time,$map['_string']);
|
|
|
|
$spendData = $this->caculateSpend($pay_time,$map['_string']);
|
|
|
|