Browse Source

代理新增客服信息接口

master
wanghongjun 2 years ago
parent
commit
888248ed0a
  1. 18
      app/controller/AgentTeam.php

18
app/controller/AgentTeam.php

@ -8,6 +8,7 @@ use app\middleware\CheckAgent;
use app\model\AgentDownScoresRecords;
use app\model\AgentUpScoresRecords;
use app\model\AgentUser;
use app\model\CustomerService as CustomerServiceModel;
use app\model\RechargeRecords;
use app\model\User;
use app\model\User as UserModel;
@ -307,6 +308,23 @@ class AgentTeam extends BaseController
]);
}
/**
* 返回用户联系客服信息
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
*/
public function getCustomerServiceList()
{
$where = [];
$CustomerServiceModel = new CustomerServiceModel();
# 查询用户列表
$field = 'id,name,wx_number';
$list = $CustomerServiceModel->field($field)->where($where)->order('id desc')->select()->toArray();
return $this->renderSuccess('数据返回成功', ['list' => $list]);
}
/**
* 退出登陆

Loading…
Cancel
Save