chore(addon/aikefu): 更新控制器及更新事件
This commit is contained in:
@@ -49,7 +49,7 @@ class Kefu extends BaseApi
|
||||
$kefu_config_model = new KefuConfigModel();
|
||||
$config_info = $kefu_config_model->getConfig($this->site_id);
|
||||
|
||||
if (empty($config_info['data']['value']) || $config_info['data']['value']['status'] != 1) {
|
||||
if (empty($config_info) || $config_info['status'] != 1) {
|
||||
return $this->response($this->error('智能客服暂未启用'));
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ class Kefu extends BaseApi
|
||||
$kefu_config_model = new KefuConfigModel();
|
||||
$config_info = $kefu_config_model->getConfig($this->site_id);
|
||||
|
||||
if (empty($config_info['data']['value']) || $config_info['data']['value']['status'] != 1) {
|
||||
if (empty($config_info) || $config_info['status'] != 1) {
|
||||
return $this->response($this->error('智能客服暂未启用'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user