Browse Source

出标机 box_out

cqpCow 11 tháng trước cách đây
mục cha
commit
f8314d448e
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      app/Http/Controllers/Api/JobController.php

+ 7 - 1
app/Http/Controllers/Api/JobController.php

@@ -41,7 +41,13 @@ class JobController extends BaseController
     }
 
     public function labelDeal(Request $request){
-        $id = BigKingCbj::insert(['data'=> json_encode($request->all()), 'crt_time' => time()]);
+        //记录数据
+        $model = new BigKingCbj();
+        $model->data = json_encode($request->all());
+        $model->crt_time = time();
+        $model->save();
+        $id = $model->id;
+
         $header = $request->header('Authorization');
         dispatch(new LabelDealJob($request->all(), $header, $id))->onQueue('label_deal');