You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
783 B

  1. <?php
  2. namespace App\JsonRpc;
  3. use App\Commons\Log;
  4. use App\Service\v3\Interfaces\FeiePrintServiceInterface;
  5. use Hyperf\RpcServer\Annotation\RpcService;
  6. use Hyperf\Di\Annotation\Inject;
  7. /**
  8. * @RpcService(name="FeieService", protocol="jsonrpc-http", server="jsonrpc-http", publishTo="")
  9. * Class FeieService
  10. * @package App\JsonRpc
  11. */
  12. class FeieService implements PrintServiceInterface
  13. {
  14. /**
  15. * @Inject
  16. * @var FeiePrintServiceInterface
  17. */
  18. private $feieprintService;
  19. /**
  20. * @Inject
  21. * @var Log
  22. */
  23. protected $log;
  24. public function doPrint($oid)
  25. {
  26. // TODO: Implement doPrint() method.
  27. $this->log->event('feieprint_rpc', ['global_order_id' => $oid]);
  28. return $this->feieprintService->feiePrint($oid);
  29. }
  30. }