first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
<?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());
}
}
}