Browse Source

议题状态调整

q 1 year ago
parent
commit
0c0051a532
1 changed files with 3 additions and 2 deletions
  1. 3 2
      webmain/task/openapi/openmeetAction.php

+ 3 - 2
webmain/task/openapi/openmeetAction.php

@@ -111,8 +111,6 @@ class openmeetClassAction extends openapiAction
             // 党委会议(需要加入议题)
             if ($nowMeet['type'] == 2) {
                 $topics = $this->db->getall("select `id`, `topic_title`, `topic_attendee`, `topic_state`, `topic_info` from `[Q]meeting_topics` where mid = {$nowMeet['id']} order by sort");
-                $this_topics = [];
-                $next_topics = [];
                 // 会议议题处理
                 for ($i = 0; $i < count($topics); $i++) {
                     $info = $topics[$i];
@@ -132,6 +130,9 @@ class openmeetClassAction extends openapiAction
                         }
                     }
                 }
+                if (count($data['participants']) == 0) {
+                    $data['participants'] = [];
+                }
 
             } else {
                 // 普通会议,议题为空