first(); $order->transaction_id = $transaction_id; if ($order) { if ($order->status == 'PAID') { myLog('pay_notify')->info('has_pay:' . $trade_no); return true; } if ($order->order_type == 'YEAR') { $app = new YearOrderPaySuccess($order); } elseif ($order->order_type == 'BOOK') { $app = new BookOrderPaySuccess($order); } elseif ($order->order_type == 'RECHARGE') { $app = new RechargeOrderPaySuccess($order); } return $app->success(); } else { return false; } } }