|
@@ -8,7 +8,7 @@ class meetingClassModel extends Model
|
|
|
public function initModel()
|
|
|
{
|
|
|
$this->hyarra = array('正常', '会议中', '结束', '取消');
|
|
|
- $this->ytarra = array('待进行', '待进行', '进行中', '已结束');
|
|
|
+ $this->ytarra = array('等待', '待进行', '进行中', '已结束');
|
|
|
$this->hyarrb = array('green', 'blue', '#ff6600', '#888888');
|
|
|
}
|
|
|
|
|
@@ -56,9 +56,12 @@ class meetingClassModel extends Model
|
|
|
|
|
|
public function firstMeetingTopicStart($meeting_id) {
|
|
|
|
|
|
- $topic = m('meeting_topics')->getone("mid={$meeting_id}", "id", 'sort');
|
|
|
- if (isset($topic['id'])) {
|
|
|
- m('meeting_topics')->update(['topic_state'=>'2'], 'id='.$topic['id']);
|
|
|
+ $topic = m('meeting_topics')->getall("mid={$meeting_id}", "id", 'sort');
|
|
|
+ if (isset($topic[0]['id'])) {
|
|
|
+ m('meeting_topics')->update(['topic_state'=>'2'], 'id='.$topic[0]['id']);
|
|
|
+ }
|
|
|
+ if (isset($topic[1]['id'])) {
|
|
|
+ m('meeting_topics')->update(['topic_state'=>'1'], 'id='.$topic[1]['id']);
|
|
|
}
|
|
|
}
|
|
|
|