|
@@ -869,16 +869,18 @@ class StoreOrder extends BaseModel
|
|
|
|
|
|
$res = $res1 && $resPink && UserSpread::setSpreadSure($order['uid']) && User::backOrderBrokerage($order);
|
|
|
$user = User::getUserInfo($order['uid']);
|
|
|
- if ($user['phone'])
|
|
|
- OtherSMSService::send($user['phone'], '成功支付' . floatval(bcadd($order['pay_price'], $order['deposit'], 2)) . '元购买商品' . ($order['deposit'] ? "(含押金{$order['deposit']})" : ''));
|
|
|
- if ($openid = WechatUser::where('uid', $order['uid'])->value('routine_openid')) {
|
|
|
- MiniProgramService::sendSubscribeTemlate($openid, 'utyQMQe5vfiJt1CA3-Q3JnGd2_dQ3mdyY0K44Gpaut4',
|
|
|
- [
|
|
|
- 'thing2' => self::getSubstrUTf8(self::getProductTitle($order['cart_id']), 8),
|
|
|
- 'amount3' => $order['total_price'],
|
|
|
- 'number4' => $order['total_num'],
|
|
|
- 'thing6' => $order['pay_price'],
|
|
|
- ]);
|
|
|
+ if (!$order['store_order']) {
|
|
|
+ if ($user['phone'])
|
|
|
+ OtherSMSService::send($user['phone'], '成功支付' . floatval(bcadd($order['pay_price'], $order['deposit'], 2)) . '元购买商品' . ($order['deposit'] ? "(含押金{$order['deposit']})" : ''));
|
|
|
+ if ($openid = WechatUser::where('uid', $order['uid'])->value('routine_openid')) {
|
|
|
+ MiniProgramService::sendSubscribeTemlate($openid, 'utyQMQe5vfiJt1CA3-Q3JnGd2_dQ3mdyY0K44Gpaut4',
|
|
|
+ [
|
|
|
+ 'thing2' => self::getSubstrUTf8(self::getProductTitle($order['cart_id']), 8),
|
|
|
+ 'amount3' => $order['total_price'],
|
|
|
+ 'number4' => $order['total_num'],
|
|
|
+ 'thing6' => $order['pay_price'],
|
|
|
+ ]);
|
|
|
+ }
|
|
|
}
|
|
|
return false !== $res;
|
|
|
}
|