|
|
@@ -268,24 +268,6 @@ class PurchaseController extends BaseController
|
|
|
util::fail('用户信息缺失');
|
|
|
}
|
|
|
|
|
|
- //欠款超额,是否允许使用现金下单
|
|
|
- if ($custom->debtLimitPay == 1) {
|
|
|
- //欠款超额,不允许使用现金下单
|
|
|
- $debtLimit = $custom->debtLimit ?? 0;
|
|
|
- $debtAmount = $custom->debtAmount ?? 0;
|
|
|
- if ($debtAmount > $debtLimit && $debtLimit > 0) {
|
|
|
- if (getenv('YII_ENV') == 'production') {
|
|
|
- //福清辉煌鲜花
|
|
|
- $myMainId = [45984, 50];
|
|
|
- } else {
|
|
|
- $myMainId = [644];
|
|
|
- }
|
|
|
- if (in_array($ghsInfo['mainId'], $myMainId)) {
|
|
|
- util::fail('请结清欠款再下单');
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$post['customId'] = $customId;
|
|
|
$shopAdmin = $this->shopAdmin ?? null;
|
|
|
$name = $shopAdmin->name ?? '';
|
|
|
@@ -488,7 +470,6 @@ class PurchaseController extends BaseController
|
|
|
|
|
|
$sendType = $post['sendType'] ?? 0;
|
|
|
$transType = $post['transType'] ?? 0;
|
|
|
- $shopExt = null;
|
|
|
if ($sendType == dict::getDict('sendType', 'thirdSend')) {
|
|
|
$shopExt = ShopExtClass::getByCondition(['shopId' => $ghsShopId], true, null, 'id,shopId,thirdSend,hcMap,hcFreeKm');
|
|
|
if ($shopExt->thirdSend == 1) {
|
|
|
@@ -665,7 +646,6 @@ class PurchaseController extends BaseController
|
|
|
|
|
|
$respond = PurchaseService::createPurchase($post, $ghsInfo);
|
|
|
|
|
|
-
|
|
|
if ($sendType == 0) {
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
//杭州斗南鲜花批发部,满500,10公里内免费配送,满1000,20公里免费配送
|