| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Http\Controllers\api\thirdPart\syrius\producer;
- use App\Http\Controllers\api\thirdPart\syrius\beans\Task;
- class OrderController extends Controller
- {
- public function createOrder(Task $order)
- {
- $this->method = "post";
- $this->data = [(array)$order];
- $this->url = config("api.syrius.request.create_order");
- $response = $this->response();
- if (!$response)dd("服务器通信异常,检查错误日志");
- dd($response->body());
- }
- public function getOrder(string $id)
- {
- $this->method = "get";
- $this->url = config("api.syrius.request.find_order").$id;
- $response = $this->response();
- if (!$response)dd("服务器通信异常,检查错误日志");
- dd($response->body());
- }
- }
|