UrsRegisterWebhook.php 989 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace ThirdParty\Urs\Webhook;
  3. use App\Module\ThirdParty\Models\ThirdPartyService as ServiceModel;
  4. use Illuminate\Http\Request;
  5. /**
  6. * URS注册通知Webhook处理器
  7. *
  8. * 专门处理用户注册相关的Webhook通知
  9. */
  10. class UrsRegisterWebhook extends WebhookReceiver
  11. {
  12. /**
  13. * 构造函数
  14. *
  15. * @param string $serviceCode 服务代码
  16. * @param Request $request 请求对象
  17. * @param ServiceModel $service 服务配置对象
  18. */
  19. public function __construct(string $serviceCode, Request $request, ServiceModel $service)
  20. {
  21. parent::__construct($serviceCode, $request, $service);
  22. }
  23. /**
  24. * 处理注册通知
  25. *
  26. * @param string $action 操作类型(固定为register)
  27. * @param Request $request 请求对象
  28. * @return array
  29. * @throws \Exception
  30. */
  31. protected function handler(string $action, Request $request): array
  32. {
  33. // 处理注册通知
  34. return [];
  35. }
  36. }