回调日志处理
This commit is contained in:
parent
ef7f100767
commit
b63052f604
@ -404,6 +404,13 @@ class PayNotifyLogic extends BaseLogic
|
||||
self::dealProductLog($order);
|
||||
if ($order['shipping_type'] == 3) {
|
||||
self::descStock($order['id']);
|
||||
//直接加对应兑换券
|
||||
if ($order->uid >0) {
|
||||
$total_vip = bcmul($order['pay_price'], 0.1, 2);
|
||||
self::addNewUserSing($order,8,$total_vip,1,1);
|
||||
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
||||
}
|
||||
|
||||
}
|
||||
if (!empty($extra['payer']['openid']) && $order->pay_type == 7) {
|
||||
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid']], 4);
|
||||
@ -811,6 +818,13 @@ class PayNotifyLogic extends BaseLogic
|
||||
self::dealProductLog($order);
|
||||
if ($order['shipping_type'] == 3) {
|
||||
self::descStock($order['id']);
|
||||
//直接加兑换券到对应得账户
|
||||
if ($order->uid >0) {
|
||||
$total_vip = bcmul($order['pay_price'], 0.1, 2);
|
||||
self::addNewUserSing($order,8,$total_vip,1,1);
|
||||
User::where('id', $order->uid)->inc('integral', $total_vip)->update();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// if ($order->pay_type == 9) {
|
||||
@ -848,7 +862,7 @@ class PayNotifyLogic extends BaseLogic
|
||||
$user_ship = User::where('id', $order['uid'])->value('user_ship'); //会员不加兑换券
|
||||
if (
|
||||
$order['uid'] > 0 && $order['total_price'] >= 500
|
||||
&& $order['pay_type'] != PayEnum::PURCHASE_FUNDS && $user_ship != 1
|
||||
&& $order['pay_type'] != PayEnum::PURCHASE_FUNDS && $user_ship != 1 && $order['shipping_type'] !=3
|
||||
) {
|
||||
$user_number = bcmul($order['pay_price'], '0.10', 2);
|
||||
$sing = [
|
||||
@ -871,7 +885,8 @@ class PayNotifyLogic extends BaseLogic
|
||||
//用户下单该用户等级为1得时候才处理冻结金额
|
||||
$user = User::where('id', $order['uid'])->find();
|
||||
$user_ship = $user['user_ship'];
|
||||
if($order['total_price'] >= 500 && $order['pay_type'] !=PayEnum::PURCHASE_FUNDS && $user_ship !=1){
|
||||
if($order['total_price'] >= 500 && $order['pay_type'] !=PayEnum::PURCHASE_FUNDS && $user_ship !=1
|
||||
&& $order['shipping_type'] !=3){
|
||||
$user_number = bcmul($order['pay_price'], '0.10', 2);
|
||||
$sing = [
|
||||
'uid' => $order['uid'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user