feat : Proxy Remote Fail
This commit is contained in:
30
app/Service/Test/Proxy/Remote/LocalOrderService.php
Normal file
30
app/Service/Test/Proxy/Remote/LocalOrderService.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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\Remote;
|
||||
|
||||
use App\Interface\Test\Proxy\OrderInterface;
|
||||
|
||||
class LocalOrderService implements OrderInterface
|
||||
{
|
||||
/**
|
||||
* 本地订单
|
||||
* @param array $data
|
||||
* @return array
|
||||
*/
|
||||
public function createOrder(array $data): array
|
||||
{
|
||||
return [
|
||||
'order_id' => uniqid(),
|
||||
'status' => 'created',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user