|
|
@@ -651,6 +651,14 @@ class PurchaseController extends BaseController
|
|
|
$info['balance'] = $this->shop->balance ?? 0;
|
|
|
$getPayType = dict::getDict('getPayType');
|
|
|
$info['getPayType'] = $getPayType;
|
|
|
+
|
|
|
+ //获取售后条件
|
|
|
+ $ghsId = $info['ghsId'] ?? 0;
|
|
|
+ $ghsInfo = GhsClass::getById($ghsId, true);
|
|
|
+ if (empty($ghsInfo)) {
|
|
|
+ util::fail('没有找到供货商');
|
|
|
+ }
|
|
|
+ $info['afterSale'] = $ghsInfo->afterSale ?? 1;
|
|
|
util::success($info);
|
|
|
}
|
|
|
|