transaction_id = $transaction_id; if ($order) { if ($order->status == 'PAID') { myLog('pay_notify')->info('has_pay:' . $trade_no); return true; } $product = ProductService::getProductSingle($order->product_id); if ($product->type == 'YEAR_ORDER') { $app = new YearOrderPaySuccess($order); } elseif ($product->type == 'BOOK_ORDER') { $app = new BookOrderPaySuccess($order); } elseif ($product->type == 'TICKET_RECHARGE') { $app = new RechargeOrderPaySuccess($order, $product); } return $app->success(); } else { return false; } } }