47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
|
|
|
|
namespace app\api\controller;
|
|
use app\common\service\ExpressService;
|
|
use app\common\service\OrderService;
|
|
use think\Exception;
|
|
use think\facade\Cache;
|
|
|
|
|
|
|
|
class ExpressController extends ApiController{
|
|
|
|
protected $noAuth = [];
|
|
/**
|
|
* @apiDefine Express 物流
|
|
*/
|
|
|
|
/**
|
|
* @apiVersion 1.0.0
|
|
* @api {post} /Express/get_express 1.物流查询(李程)
|
|
* @apiName get_express
|
|
* @apiGroup Express
|
|
* @apiParam {Int} exp_num 物流单号
|
|
* @apiParam {String} exp_type 物流类型
|
|
* @apiParam {String} type 类型 get_type物流厂商 get_detail物流详情[get_detail]
|
|
* @apiSuccessExample Success-Response:
|
|
*{
|
|
"code": 200,
|
|
"message": "成功",
|
|
"data": {}
|
|
}
|
|
*/
|
|
|
|
public function get_express(){
|
|
try{
|
|
$parames = input('');
|
|
$parames['user_id'] = $this->uid;
|
|
$data['order_info'] = model(OrderService::class)->orderDetail($parames);
|
|
$data['express_info'] = model(ExpressService::class)->get_express($parames);
|
|
return self::returnMsg(self::SUCCESS, self::getMessage('SUCCESS'), $data);
|
|
}catch (Exception $exception){
|
|
return self::returnMsg(self::ERR_ILLEGAL, $exception->getMessage());
|
|
}
|
|
|
|
}
|
|
} |