lip 3 месяцев назад
Родитель
Сommit
7caded7da2
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/enterprise/controller/Im.php

+ 3 - 3
app/enterprise/controller/Im.php

@@ -1282,9 +1282,9 @@ class Im extends BaseController
     public function delMessage(){
         $param = $this->request->param();
         $id = $param['id'];
-        if(!$this->globalConfig['chatInfo']['dbDelMsg']){
-            return warning(lang('system.notAuth'));
-        }
+        // if(!$this->globalConfig['chatInfo']['dbDelMsg']){
+        //     return warning(lang('system.notAuth'));
+        // }
         $message = Message::where(['id' => $id])->find();
         if ($message) {
             if($message['from_user']!=$this->userInfo['user_id']){