|
|
@@ -48,6 +48,28 @@ class ClearClass extends BaseClass
|
|
|
}
|
|
|
$totalPrice = bcadd($totalPrice, $purchase->realPrice, 2);
|
|
|
}
|
|
|
+ $ghs = GhsClass::getById($currentGhsId, true);
|
|
|
+ if (empty($ghs)) {
|
|
|
+ util::fail('没有找到供应商');
|
|
|
+ }
|
|
|
+ GhsClass::valid($ghs, $data['shopId']);
|
|
|
+ $ghsName = $ghs->name ?? '';
|
|
|
+ $ghsAvatar = $ghs->avatar ?? '';
|
|
|
+ $ghsMobile = $ghs->mobile ?? '';
|
|
|
+
|
|
|
+ $customId = $ghs->customId ?? 0;
|
|
|
+ $custom = CustomClass::getById($customId, true);
|
|
|
+ $customName = $custom->name ?? '';
|
|
|
+ $customAvatar = $custom->avatar ?? '';
|
|
|
+ $customMobile = $custom->mobile ?? '';
|
|
|
+
|
|
|
+ $data['ghsName'] = $ghsName;
|
|
|
+ $data['ghsAvatar'] = $ghsAvatar;
|
|
|
+ $data['ghsMobile'] = $ghsMobile;
|
|
|
+ $data['customName'] = $customName;
|
|
|
+ $data['customAvatar'] = $customAvatar;
|
|
|
+ $data['customMobile'] = $customMobile;
|
|
|
+
|
|
|
$data['actPrice'] = $totalPrice;
|
|
|
$data['prePrice'] = $totalPrice;
|
|
|
$data['orderSn'] = $orderSn;
|