|
|
|
@ -152,11 +152,12 @@ class Recovery extends Controller |
|
|
|
|
$info['is_edit'] = 1; |
|
|
|
|
} |
|
|
|
|
$images_list = helper::getArrayColumn($info['images'], 'file'); |
|
|
|
|
$arr = []; |
|
|
|
|
foreach ($images_list as $image) { |
|
|
|
|
$arr[] = $image['preview_url']; |
|
|
|
|
} |
|
|
|
|
$info['images_list'] = $arr; |
|
|
|
|
// $arr = []; |
|
|
|
|
// foreach ($images_list as $image) { |
|
|
|
|
// $arr[] = $image['preview_url']; |
|
|
|
|
// } |
|
|
|
|
// $info['images_list'] = $arr; |
|
|
|
|
$info['images_list'] = $images_list; |
|
|
|
|
unset($info['images']); |
|
|
|
|
//回收信息 |
|
|
|
|
$info['recovery_image'] = ''; |
|
|
|
@ -305,17 +306,20 @@ class Recovery extends Controller |
|
|
|
|
$image_str = $this->request->post('image_ids'); |
|
|
|
|
$imageIds = []; |
|
|
|
|
if ($image_str) { |
|
|
|
|
if (!is_array($image_str)) { |
|
|
|
|
$imageIds = explode(',', $image_str); |
|
|
|
|
} else { |
|
|
|
|
$imageIds = $image_str; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if ($imageIds && !is_array($imageIds)) { |
|
|
|
|
$imageIds = explode(',', $imageIds); |
|
|
|
|
} else { |
|
|
|
|
$imageIds = []; |
|
|
|
|
} |
|
|
|
|
$imageIds = explode(',', $image_str); |
|
|
|
|
} |
|
|
|
|
// if ($image_str) { |
|
|
|
|
// if (!is_array($image_str)) { |
|
|
|
|
// $imageIds = explode(',', $image_str); |
|
|
|
|
// } else { |
|
|
|
|
// $imageIds = $image_str; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// if ($imageIds && !is_array($imageIds)) { |
|
|
|
|
// $imageIds = explode(',', $imageIds); |
|
|
|
|
// } else { |
|
|
|
|
// $imageIds = []; |
|
|
|
|
// } |
|
|
|
|
$shop_id = intval($this->request->post('shop_id')); |
|
|
|
|
if (!$shop_id) { |
|
|
|
|
return $this->renderError('门店不能为空'); |
|
|
|
@ -384,10 +388,8 @@ class Recovery extends Controller |
|
|
|
|
'house_number' => $house_number, |
|
|
|
|
]; |
|
|
|
|
$model = new RecoveryOrder(); |
|
|
|
|
if ($model->edit($data, $order_id, $imageIds)) { |
|
|
|
|
return $this->renderSuccess('操作成功'); |
|
|
|
|
} |
|
|
|
|
return $this->renderError('操作失败'); |
|
|
|
|
$model->edit($data, $order_id, $imageIds); |
|
|
|
|
return $this->renderSuccess('操作成功'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|