Commit 3891f442 authored by 冯超鹏's avatar 冯超鹏

更新数据

parent 89169587
......@@ -132,12 +132,11 @@ class AlarmOrderController extends Controller
public function update(Request $request)
{
$data = $request->all();
if(isset($data['schedule'])) {
DB::beginTransaction();
try {
AlarmOrderSchedule::insert(array_merge(
$data['schedule'],
json_decode($data['schedule'],true),
['created_at' => Carbon::now(), 'alarm_order_id' => $data['id']]));
unset($data['schedule']);
$order = AlarmOrder::where('id', $data['id'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment