logistics_sy/app/adminapi/controller/logistic/LogisticController.php

28 lines
871 B
PHP

<?php
namespace app\adminapi\controller\logistic;
use app\adminapi\controller\BaseAdminController;
class LogisticController extends BaseAdminController
{
public function lists(): \think\response\Json
{
$params = $this->request->get(['order_sn','shop_name','user_name','courier_name','status','page_no','page_size']);
if(empty($params['page_no']) || empty($params['page_size'])){
return $this->fail('缺少必要参数');
}
$curlRes = curl_post(env('project.logistic_domain').'/common/logistic/lists',$params);
return json($curlRes);
}
public function detail(): \think\response\Json
{
$params = $this->request->get(['id']);
if(empty($params['id'])){
return $this->fail('缺少必要参数');
}
$curlRes = curl_post(env('project.logistic_domain').'/common/logistic/detail',$params);
return json($curlRes);
}
}