24 lines
460 B
PHP
24 lines
460 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Controller\Test;
|
|
|
|
use App\Service\Test\Bridge\PayService;
|
|
use Hyperf\HttpServer\Annotation\Controller;
|
|
use Hyperf\HttpServer\Annotation\RequestMapping;
|
|
|
|
#[Controller(prefix: 'bridge/test')]
|
|
class BridgeController
|
|
{
|
|
/**
|
|
* 桥接消费
|
|
* @return array
|
|
*/
|
|
#[RequestMapping(path: 'pay', methods: 'GET')]
|
|
public function pay(): array
|
|
{
|
|
return (new PayService)->handle();
|
|
}
|
|
}
|