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