From 888248ed0a90eef158ea97a3d150d2964040eaa1 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Tue, 12 Sep 2023 15:23:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=90=86=E6=96=B0=E5=A2=9E=E5=AE=A2?= =?UTF-8?q?=E6=9C=8D=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/AgentTeam.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/controller/AgentTeam.php b/app/controller/AgentTeam.php index 3073d40..32e4635 100644 --- a/app/controller/AgentTeam.php +++ b/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]); + } + /** * 退出登陆