|
@@ -27,6 +27,13 @@ class OrderPaySuccess
|
|
|
if ($order) {
|
|
|
if ($order->status == 'PAID') {
|
|
|
myLog('pay_notify')->info('has_pay:' . $trade_no);
|
|
|
+ try {
|
|
|
+ //添加异步任务队列
|
|
|
+ $job = new QappOrder($trade_no);
|
|
|
+ dispatch($job->onConnection('redis')->onQueue('qapp_order_pay_success'));
|
|
|
+ } catch (Exception $e) {
|
|
|
+ sendNotice($e->getMessage());
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
if ($order->order_type == 'YEAR') {
|
|
@@ -48,9 +55,6 @@ class OrderPaySuccess
|
|
|
}
|
|
|
self::freeBookStats($order->from_bid,$order->price,$order->uid);
|
|
|
|
|
|
- //添加异步任务队列
|
|
|
- $job = new QappOrder($trade_no);
|
|
|
- dispatch($job->onConnection('redis')->onQueue('qapp_order_pay_success'));
|
|
|
return $status;
|
|
|
} else {
|
|
|
return false;
|