TestOpenApi.php 841 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Console\Test;
  3. use App\Dao\Account\AccountDao;
  4. use App\Dao\User\UserDao;
  5. use App\Services\OpenApi\OpenService;
  6. use Illuminate\Console\Command;
  7. class TestOpenApi extends Command
  8. {
  9. /**
  10. * @var string
  11. */
  12. protected $signature = 'test:open:api';
  13. /**
  14. * The console command description.
  15. * php artisan Payment:BasePayment --bid='1'
  16. *
  17. * @var string
  18. */
  19. protected $description = '测试open api';
  20. private $openService;
  21. public function __construct(
  22. OpenService $openService
  23. )
  24. {
  25. parent::__construct();
  26. $this->openService = $openService;
  27. }
  28. /**
  29. * handle
  30. */
  31. public function handle()
  32. {
  33. $this->openService->getOpenInstance()->eventList();
  34. $this->openService->getInstance()->permissionList();
  35. }
  36. }