shish 5 лет назад
Родитель
Сommit
aaa40048cb
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app-ghs/controllers/RefundController.php

+ 3 - 0
app-ghs/controllers/RefundController.php

@@ -102,6 +102,9 @@ class RefundController extends BaseController
                 }
                 }
             }
             }
             $post['product'] = $productList;
             $post['product'] = $productList;
+        }else{
+            //如果仅退款花材直接设置为空
+            $post['product'] = '';
         }
         }
         $post['price'] = $post['price'] ?? 0;
         $post['price'] = $post['price'] ?? 0;
         if ($post['price'] <= 0) {
         if ($post['price'] <= 0) {