Browse Source

结束模式切换回默认模式

master
wanghongjun 3 weeks ago
parent
commit
cf4c01d73a
  1. 9
      app/Services/EventCalendarService.php

9
app/Services/EventCalendarService.php

@ -212,6 +212,15 @@ class EventCalendarService extends BaseService
'event_calendar.update' 'event_calendar.update'
); );
// 切换回默认模式
$pattern_id = EventCalendarService::getTargetModeId();
if ($pattern_id) {
// 更新车位类型
$this->syncUpdateSpaceType($pattern_id);
// 记录日志
AdminNoticeService::addChangeModeNotice($pattern_id, $user_id);
}
DB::commit(); DB::commit();
return true; return true;
} catch (Exception $e) { } catch (Exception $e) {

Loading…
Cancel
Save