|
|
|
@ -2,6 +2,7 @@ |
|
|
|
namespace app\controller; |
|
|
|
|
|
|
|
use app\BaseController; |
|
|
|
use app\model\CustomerService as CustomerServiceModel; |
|
|
|
use app\model\User as UserModel; |
|
|
|
use app\validate\User as UserValidate; |
|
|
|
use think\exception\ValidateException; |
|
|
|
@ -188,4 +189,21 @@ class User extends BaseController |
|
|
|
|
|
|
|
return $this->renderSuccess('数据返回成功',['data' => $info]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 返回用户联系客服信息 |
|
|
|
* @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]); |
|
|
|
} |
|
|
|
} |