wesmiler před 2 měsíci
rodič
revize
1480c84dab

+ 1 - 16
app/Models/MeetingModel.php

@@ -60,14 +60,7 @@ class MeetingModel extends BaseModel
     {
         return $value? array_filter(explode(',', $value)):[];
     }
-
-    /**
-     * @return array
-     */
-    public function setStoreIdsAttribute($value)
-    {
-        return $value? implode(',', $value).',' : '';
-    }
+    
 
     /**
      * @return array
@@ -78,14 +71,6 @@ class MeetingModel extends BaseModel
     }
 
     /**
-     * @return array
-     */
-    public function setSupervisorIdsAttribute($value)
-    {
-        return $value? implode(',', $value).',' : '';
-    }
-
-    /**
      * 推荐组织人
      */
     public function member()

+ 3 - 1
app/Services/Common/MeetingService.php

@@ -135,7 +135,9 @@ class MeetingService extends BaseService
         $data['city_id'] = isset($areas[1])?$areas[1]:0;
         // 县区
         $data['district_id'] = isset($areas[2])?$areas[2]:0;
-        var_dump($data);
+
+        $data['store_ids'] = $data['store_ids']? implode(',',$data['store_ids']).',' : '';
+        $data['supervisor_ids'] = $data['supervisor_ids']? implode(',',$data['supervisor_ids']).',' : '';
 
         // 设置日志
         ActionLogModel::setRecord(session('userId'), ['type' => 1, 'title' => '编辑会议信息', 'content' => json_encode($data, 256), 'module' => 'admin']);