|
|
@ -8,7 +8,6 @@ use app\middleware\CheckAgent; |
|
|
use app\model\AgentDownScoresRecords; |
|
|
use app\model\AgentDownScoresRecords; |
|
|
use app\model\AgentUpScoresRecords; |
|
|
use app\model\AgentUpScoresRecords; |
|
|
use app\model\AgentUser; |
|
|
use app\model\AgentUser; |
|
|
use app\model\CustomerService as CustomerServiceModel; |
|
|
|
|
|
use app\model\RechargeRecords; |
|
|
use app\model\RechargeRecords; |
|
|
use app\model\User; |
|
|
use app\model\User; |
|
|
use app\model\User as UserModel; |
|
|
use app\model\User as UserModel; |
|
|
@ -253,9 +252,9 @@ class AgentTeam extends BaseController |
|
|
|
|
|
|
|
|
$limit = $data['limit'] ?: 10; |
|
|
$limit = $data['limit'] ?: 10; |
|
|
|
|
|
|
|
|
$list = Db::name('agent_recharge_records') |
|
|
$list = Db::name('agent_up_scores_records') |
|
|
->where('aid',$agentData['id']) |
|
|
->where('aid',$agentData['id']) |
|
|
->field('user_id,withdrawal_amount,withdrawal_balance,create_time') |
|
|
->field('user_id,balance,residue_amount,create_time') |
|
|
->order('id' ,'desc') |
|
|
->order('id' ,'desc') |
|
|
->paginate($limit); |
|
|
->paginate($limit); |
|
|
|
|
|
|
|
|
@ -263,7 +262,7 @@ class AgentTeam extends BaseController |
|
|
|
|
|
|
|
|
foreach ($listArr as &$item) { |
|
|
foreach ($listArr as &$item) { |
|
|
$item['relation_id'] = $item['user_id']; |
|
|
$item['relation_id'] = $item['user_id']; |
|
|
give_symbol($item['withdrawal_amount'],'-'); |
|
|
give_symbol($item['balance'],'-'); |
|
|
$item['create_time'] = date("m月d日 H:i",strtotime($item['create_time'])); |
|
|
$item['create_time'] = date("m月d日 H:i",strtotime($item['create_time'])); |
|
|
unset($item['user_id']); |
|
|
unset($item['user_id']); |
|
|
} |
|
|
} |
|
|
|