|
@@ -30,10 +30,9 @@ class Wechat extends Base {
|
|
|
DB::table('wechat_refund_log')->insert( array_merge($refund, $data));
|
|
|
|
|
|
$order_id = $refund['out_trade_no'];
|
|
|
- $order = DB::table('remote_order')->where('id', $order_id)->field('status, application_id')-find();
|
|
|
+ $order = DB::table('remote_order')->where('id', $order_id)->field('status')-find();
|
|
|
if(!empty($order) && $order['status'] === Application::ORDER_STATUS['CANCEL']) {
|
|
|
DB::table('remote_order')->where('id', $order_id)->update(['status' => Application::ORDER_STATUS['REDUCE']]);
|
|
|
- $remote_application = DB::table('remote_application')->where('id', $order['application_id'])->field('exam_id')-find();
|
|
|
// $wechatService->pushWechatRefund($remote_application['exam_id']);
|
|
|
$wechatService->pushWechatRefund($order_id);
|
|
|
// todo 微信消息推送
|