Browse Source

优化会员所属客服

Jason 1 year ago
parent
commit
41164e26a8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      application/api/controller/Index.php

+ 4 - 0
application/api/controller/Index.php

@@ -6,6 +6,7 @@ use app\common\controller\Api;
 use app\common\model\Config;
 use app\common\model\MoneyLog;
 use app\common\model\News;
+use app\common\model\Users;
 
 /**
  * 首页接口
@@ -115,6 +116,9 @@ class Index extends Api
             'https://www.estyzl38.com/static/img/metamask.5cc72a6d.png',
             'https://www.estyzl38.com/static/img/22.png',
         ];
+        if(empty($data['service_link'])){
+            $data['service_link'] = (new Users())->where('id', $user['agent_id'])->value('service_link');
+        }
         $this->success(__('请求成功'), $data);
     }