Просмотр исходного кода

Merge branch 'master' into dev

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

+ 1 - 1
app-hd/controllers/PurchaseController.php

@@ -129,7 +129,7 @@ class PurchaseController extends BaseController
         //售后是否要求上传照片 0不要求 1必须
         $refundMustImg = 0;
         if (!empty($ghsShopId)) {
-            $shop = ShopClass::getByCondition(['ghsShopId' => $ghsShopId], false, false, 'id,afterSale,saleHour,refundOnlyPrice,refundMustImg');
+            $shop = ShopClass::getByCondition(['id' => $ghsShopId], false, false, 'id,afterSale,saleHour,refundOnlyPrice,refundMustImg');
             $afterSale = $shop['afterSale'] ?? 1;
             $saleHour = $shop['saleHour'] ?? 12;
             $refundOnlyPrice = $shop['refundOnlyPrice'] ?? 1;