33 lines
684 B
PHP
33 lines
684 B
PHP
<?php
|
|
/**
|
|
* This service file is part of item.
|
|
*
|
|
* @author ctexthuang
|
|
* @contact ctexthuang@qq.com
|
|
* @web_site https://ctexthuang.com
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Service\Test\Proxy;
|
|
|
|
use App\Service\Test\Proxy\Payment\PaymentService;
|
|
use App\Service\Test\TestBaseService;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
|
|
class AopService extends TestBaseService
|
|
{
|
|
/**
|
|
* @var PaymentService
|
|
*/
|
|
#[Inject]
|
|
protected PaymentService $paymentService;
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function handle(): array
|
|
{
|
|
return $this->return->success('success',$this->paymentService->pay((float)$this->request->input('amount',1)));
|
|
}
|
|
} |