feat: 修改支付通知逻辑,移除Redis消息的过期时间
This commit is contained in:
parent
cf0520f1e6
commit
0451dea858
@ -127,7 +127,7 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
|
PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
|
||||||
// Db::name('order_middle')->insert(['c_order_id' => $order['id']]);
|
// Db::name('order_middle')->insert(['c_order_id' => $order['id']]);
|
||||||
}
|
}
|
||||||
Redis::send('push-platform-print', ['id' => $order['id']], 60);
|
Redis::send('push-platform-print', ['id' => $order['id']]);
|
||||||
if (!empty($extra['payer']['openid']) && $order->pay_type == 7) {
|
if (!empty($extra['payer']['openid']) && $order->pay_type == 7) {
|
||||||
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid']], 5);
|
Redis::send('push-delivery', ['order_id' => $order['order_id'], 'openid' => $extra['payer']['openid']], 5);
|
||||||
}
|
}
|
||||||
@ -206,6 +206,7 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
}
|
}
|
||||||
$cashFlowLogic = new CashFlowLogic();
|
$cashFlowLogic = new CashFlowLogic();
|
||||||
$cashFlowLogic->insert($order['store_id'], $order['pay_price']);
|
$cashFlowLogic->insert($order['store_id'], $order['pay_price']);
|
||||||
|
Redis::send('push-platform-print', ['id' => $order['id']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -242,7 +243,7 @@ class PayNotifyLogic extends BaseLogic
|
|||||||
} else {
|
} else {
|
||||||
PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
|
PushService::push('store_merchant_' . $order['store_id'], $order['store_id'], ['type' => 'store_merchant', 'msg' => '您有一笔新的订单']);
|
||||||
}
|
}
|
||||||
Redis::send('push-platform-print', ['id' => $order['id']], 60);
|
Redis::send('push-platform-print', ['id' => $order['id']]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user