Browse Source

pc端设置客服

lizhen_gitee 6 months ago
parent
commit
4bfb8e2daf
1 changed files with 12 additions and 0 deletions
  1. 12 0
      application/company/controller/auth/Admin.php

+ 12 - 0
application/company/controller/auth/Admin.php

@@ -303,6 +303,18 @@ class Admin extends Apic
         $this->error(__('You have no permission'));
     }
 
+    /**
+     * 设置客服
+     */
+    public function set_kefu(){
+        $id = input('id',0);
+
+        Db::name('pc_admin')->where('company_id',$this->auth->company_id)->update(['is_kefu'=>0]);
+        Db::name('pc_admin')->where('id',$id)->update(['is_kefu'=>1]);
+
+        $this->success();
+    }
+
 
 
     /**