pull/1/head
wanghousheng 10 months ago
parent f1d8cdbbbb
commit 367836f54b
  1. 12
      app/api/controller/Recovery.php

@ -302,9 +302,19 @@ class Recovery extends Controller
if (!$order_id) {
return $this->renderError('缺少必要参数');
}
$imageIds = $this->request->post('image_ids');
$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 = [];
}
$shop_id = intval($this->request->post('shop_id'));
if (!$shop_id) {

Loading…
Cancel
Save