AI 1 개월 전
부모
커밋
23520647db
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/JsonRpc/ChatService.php

+ 2 - 2
app/JsonRpc/ChatService.php

@@ -1117,7 +1117,7 @@ class ChatService implements ChatServiceInterface
     public function updateTopicClass(array $data): array
     {
         //topicname
-        if (empty($data['topicname'])) {
+        if (!empty($data['topicname'])) {
 
             $re = ChatTopicClass::where(['topicname' => $data['topicname']])->first();
             if ($re) {
@@ -1136,7 +1136,7 @@ class ChatService implements ChatServiceInterface
     public function addTopicClass(array $data): array
     {
         //topicname
-        if (empty($data['topicname'])) {
+        if (!empty($data['topicname'])) {
 
             $re = ChatTopicClass::where(['topicname' => $data['topicname']])->first();
             if ($re) {