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

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

@@ -647,8 +647,10 @@ class PurchaseController extends BaseController
         if ($presell == 1) {
             $hasDebtPay = 0;
         }
+        $shop = $this->shop;
+        $info['pfShopId'] = $shop->pfShopId ?? 0;
         $info['hasDebtPay'] = $hasDebtPay;
-        $info['balance'] = $this->shop->balance ?? 0;
+        $info['balance'] = $shop->balance ?? 0;
         $getPayType = dict::getDict('getPayType');
         $info['getPayType'] = $getPayType;
 
@@ -659,6 +661,8 @@ class PurchaseController extends BaseController
             util::fail('没有找到供货商');
         }
         $info['afterSale'] = $ghsInfo->afterSale ?? 1;
+
+
         util::success($info);
     }