Explorar el Código

售后申请限制

shish hace 1 mes
padre
commit
2c3ab458c4
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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('必须按规范提供照片');
             }
         }