|
|
@@ -223,9 +223,6 @@ class OrderClass extends BaseClass
|
|
|
$shop->save();
|
|
|
|
|
|
$capitalType = dict::getDict('capitalType', 'xhOrder', 'id');
|
|
|
- //门店余额增加
|
|
|
- ShopClass::customKdAddBalance($shop, $actPrice, $order, $capitalType);
|
|
|
-
|
|
|
$shopAdminId = $order->shopAdminId ?? 0;
|
|
|
$shopAdminName = $order->shopAdminName ?? '';
|
|
|
$sjId = $order->merchantId;
|
|
|
@@ -276,11 +273,12 @@ class OrderClass extends BaseClass
|
|
|
}
|
|
|
} else {
|
|
|
|
|
|
- //客户微信支付
|
|
|
- if ($payWay == dict::getDict('payWay', 'wxPay')) {
|
|
|
- $capitalType = dict::getDict('capitalType', 'xhOrder');
|
|
|
+ //客户下单增加商家可提现余额
|
|
|
+ if (isset($order->customId) && !empty($order->customId)) {
|
|
|
+
|
|
|
$amount = $order->actPrice;
|
|
|
ShopClass::customKdAddBalance($shop, $amount, $order, $capitalType);
|
|
|
+
|
|
|
}
|
|
|
//门店和朋友圈订单并且没有填写收花人的直接将订单置为自取并且是完成状态
|
|
|
if (in_array($order->fromType, [dict::getDict("fromType", "shop"), dict::getDict("fromType", "friend")])) {
|