feat : Proxy Remote Fail
This commit is contained in:
35
app/Service/Test/Proxy/RemoteService.php
Normal file
35
app/Service/Test/Proxy/RemoteService.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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\Remote\LocalOrderService;
|
||||
use App\Service\Test\TestBaseService;
|
||||
use Hyperf\Di\Annotation\Inject;
|
||||
|
||||
class RemoteService extends TestBaseService
|
||||
{
|
||||
/**
|
||||
* @var LocalOrderService
|
||||
*/
|
||||
#[Inject]
|
||||
protected LocalOrderService $localOrderService;
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function handle(): array
|
||||
{
|
||||
$this->localOrderService->createOrder($this->request->all());
|
||||
|
||||
return $this->return->success();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user