|
|
@@ -333,7 +333,7 @@ class StoreProduct extends AuthController
|
|
|
if (strtotime(date('Y-m-d') . ' ' . ($v['start'] ?? '00:00')) >= strtotime(date('Y-m-d') . ' ' . ($v['end'] ?? '00:00'))) {
|
|
|
return Json::fail('区间折扣的开始时间需要小于结束时间');
|
|
|
}
|
|
|
- $data['time_area_discount'][] = [$v['start'] . '-' . $v['end'] => $v['value']];
|
|
|
+ $data['time_area_discount'][$v['start'] . '-' . $v['end']] = $v['value'];
|
|
|
}
|
|
|
$data['time_area_discount'] = json_encode($data['time_area_discount']);
|
|
|
unset($data['selectTime']);
|