|
@@ -145,7 +145,7 @@ class DeviceController extends Controller
|
|
// 保存图片路径(可以存储到数据库等)
|
|
// 保存图片路径(可以存储到数据库等)
|
|
$imagePath = $destinationPath . '/' . $filename;
|
|
$imagePath = $destinationPath . '/' . $filename;
|
|
KqList::where('devid',$data['devid'])->where('flow_id',$data['id'])->update([
|
|
KqList::where('devid',$data['devid'])->where('flow_id',$data['id'])->update([
|
|
- 'pic' => $imagePath
|
|
|
|
|
|
+ 'pic' => explode('.',$filename)[0]
|
|
]);
|
|
]);
|
|
$return = [
|
|
$return = [
|
|
'devid' => $data['devid'],
|
|
'devid' => $data['devid'],
|