cqp 3 miesięcy temu
rodzic
commit
ac7e08280a
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/Service/CalendarService.php

+ 2 - 0
app/Service/CalendarService.php

@@ -71,6 +71,7 @@ class CalendarService extends Service
                     'is_work' => $value['is_work'],
                     'crt_time' => $time,
                     'top_depart_id' => $value['top_depart_id'],
+                    'month' => $value['month'],
                 ];
             }
             if(! empty($unit)) CalendarDetails::insert($unit);
@@ -189,6 +190,7 @@ class CalendarService extends Service
                 $data['details'][$key]['time'] = $this->changeDateToDate($value['time']);
                 if(! isset($value['is_work'])) return [false, '是否工作日不能为空'];
                 $data['details'][$key]['top_depart_id'] = $data['top_depart_id'];
+                $data['details'][$key]['month'] = $data['time'];
             }
         }