|
|
@@ -69,9 +69,10 @@ class GlobalController extends Controller
|
|
|
StatItemClass::replace($itemVal);
|
|
|
}
|
|
|
|
|
|
- //推荐新客发红包
|
|
|
+ //推荐新客,新客在线上下单,发推荐新客奖励
|
|
|
$tjFl = $shop->tjFl ?? 0;
|
|
|
- if ($tjFl == 1) {
|
|
|
+ $onlinePay = $order->onlinePay ?? 1;
|
|
|
+ if ($tjFl == 1 && $onlinePay == 2) {
|
|
|
$customId = $order->customId ?? 0;
|
|
|
$hostShopId = $order->shopId ?? 0;
|
|
|
$custom = CustomClass::getById($customId, true);
|