| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace ThirdParty\Urs\Webhook;
- use App\Module\ThirdParty\Models\ThirdPartyService as ServiceModel;
- use Illuminate\Http\Request;
- /**
- * URS注册通知Webhook处理器
- *
- * 专门处理用户注册相关的Webhook通知
- */
- class UrsRegisterWebhook extends WebhookReceiver
- {
- /**
- * 构造函数
- *
- * @param string $serviceCode 服务代码
- * @param Request $request 请求对象
- * @param ServiceModel $service 服务配置对象
- */
- public function __construct(string $serviceCode, Request $request, ServiceModel $service)
- {
- parent::__construct($serviceCode, $request, $service);
- }
- /**
- * 处理注册通知
- *
- * @param string $action 操作类型(固定为register)
- * @param Request $request 请求对象
- * @return array
- * @throws \Exception
- */
- protected function handler(string $action, Request $request): array
- {
- // 处理注册通知
- return [];
- }
- }
|