|
@@ -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();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
/**
|