pull/1/head
wanghousheng 10 months ago
parent 11999ebb9d
commit 0524cba8a9
  1. 4
      app/api/controller/Recovery.php

@ -68,8 +68,10 @@ class Recovery extends Controller
public function add(): Json
{
$imageIds = $this->request->post('image_ids');
if (!is_array($imageIds)) {
if ($imageIds && !is_array($imageIds)) {
$imageIds = explode(',', $imageIds);
} else {
$imageIds = [];
}
$shop_id = intval($this->request->post('shop_id'));
if (!$shop_id) {

Loading…
Cancel
Save