|
@@ -124,7 +124,7 @@ class DeviceController extends Controller
|
|
|
|
|
|
public function capture(Request $request)
|
|
public function capture(Request $request)
|
|
{
|
|
{
|
|
- //{"json":"{\"account_id\":\"23333\",\"card_sn\":\"12345\",\"devid\":\"001\",\"emp_fname\":\"诸杰伟\",\"emp_id\":\"23333\",\"id\":8,\"rec_type\":0,\"start_time\":\"1727248857342\",\"ver\":2}","picture":{"Illuminate\\Http\\UploadedFile":"/tmp/phpqJxfNO"}}
|
|
|
|
|
|
+ //{"json":"{"account_id":"23333","card_sn":"12345","devid":"001","emp_fname":"诸杰伟","emp_id":"23333","id":8,"rec_type":0,"start_time":"1727248857342","ver":2}","picture":{"Illuminate\\Http\\UploadedFile":"/tmp/phpqJxfNO"}}
|
|
$data = $request->all();
|
|
$data = $request->all();
|
|
Log::channel('apiLog')->info('smkq-capture', ['data' => $data]);
|
|
Log::channel('apiLog')->info('smkq-capture', ['data' => $data]);
|
|
$data = json_decode($data['json'],true);
|
|
$data = json_decode($data['json'],true);
|
|
@@ -148,9 +148,9 @@ class DeviceController extends Controller
|
|
'pic' => $imagePath
|
|
'pic' => $imagePath
|
|
]);
|
|
]);
|
|
$return = [
|
|
$return = [
|
|
- 'devid' => $date['devid'],
|
|
|
|
- 'emp_id' => $date['emp_id'],
|
|
|
|
- 'id' => $date['id'],
|
|
|
|
|
|
+ 'devid' => $data['devid'],
|
|
|
|
+ 'emp_id' => $data['emp_id'],
|
|
|
|
+ 'id' => $data['id'],
|
|
];
|
|
];
|
|
echo json_encode($return);
|
|
echo json_encode($return);
|
|
}
|
|
}
|