소스 검색

增加客服邮箱,增加一个用户字段

lizhen_gitee 4 달 전
부모
커밋
294bd6c9ac
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      application/api/controller/Baseconfig.php
  2. 1 1
      application/api/controller/User.php
  3. 1 1
      application/common/library/Auth.php

+ 1 - 0
application/api/controller/Baseconfig.php

@@ -21,6 +21,7 @@ class Baseconfig extends Api
 
         $config = [
             'kefu_phone' => config('site.kefuphoneno'),//客服电话号
+            'kefu_email' => config('site.kefuemail'),//客服邮箱
             'index_jiuyipeizhen' => localpath_to_netpath(config('site.index_jiuyipeizhen')),//首页就医陪诊
             'index_hulipeihu' => localpath_to_netpath(config('site.index_hulipeihu')),//首页护理陪护
             'app_imgroup_switch' => config('site.app_imgroup_switch'),//APP群聊功能开关

+ 1 - 1
application/api/controller/User.php

@@ -288,7 +288,7 @@ class User extends Api
     public function profile()
     {
         $field_array = [
-            'avatar','nickname','gender',
+            'avatar','nickname','gender','tuijian_switch'
         ];
 
         $data = [];

+ 1 - 1
application/common/library/Auth.php

@@ -26,7 +26,7 @@ class Auth
     //默认配置
     protected $config = [];
     protected $options = [];
-    protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'gender', 'createtime' ,'idcard_status','tv_mobile'];
+    protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'gender', 'createtime' ,'idcard_status','tv_mobile','tuijian_switch'];
 
     public function __construct($options = [])
     {