Ver Fonte

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

lizhen_gitee há 4 meses atrás
pai
commit
294bd6c9ac

+ 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 = [])
     {