notify($param); } else { return 'success'; } } /** * 支付宝支付通知 * @param string $scene 支付场景 * @param string $param 支付通道 * @return string */ public function alipay(string $scene = 'order', string $param = ''): string { if (strtolower($scene) === 'order') { return AliPaymentService::instance()->notify($param); } else { return 'success'; } } /** * 汇聚支付通知 * @param string $scene 支付场景 * @param string $param 支付通道 * @return string * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function joinpay(string $scene = 'order', string $param = ''): string { if (strtolower($scene) === 'order') { return JoinPaymentService::instance()->notify($param); } else { return 'success'; } } }