shish 1 месяц назад
Родитель
Сommit
2c3ab458c4
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app-hd/controllers/CgRefundController.php

+ 3 - 1
app-hd/controllers/CgRefundController.php

@@ -108,7 +108,9 @@ class CgRefundController extends BaseController
         }
         $imgList = $post['imgList'] ?? '';
         if ($ghsShop->refundMustImg == 1) {
-            if(empty($imgList)) {
+            $imgList = trim($imgList);
+            $arr = json_decode($imgList, true);
+            if (empty($arr)) {
                 util::fail('必须按规范提供照片');
             }
         }