mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-16 05:52:51 +00:00
修改后台查看物流样式,更换物流查询接口https://market.aliyun.com/products/56928004/cmapi021863.html
This commit is contained in:
parent
c647456e00
commit
4caf1e18cc
@ -14,19 +14,19 @@
|
|||||||
<!-- QQ强制竖屏 -->
|
<!-- QQ强制竖屏 -->
|
||||||
<meta name="x5-orientation" content="portrait">
|
<meta name="x5-orientation" content="portrait">
|
||||||
<title>物流信息</title>
|
<title>物流信息</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/public/static/css/reset.css"/>
|
<link rel="stylesheet" type="text/css" href="{__PUBLIC_PATH}static/css/reset.css"/>
|
||||||
<link rel="stylesheet" type="text/css" href="/public/wap/crmeb/font/iconfont.css"/>
|
<link rel="stylesheet" type="text/css" href="{__PUBLIC_PATH}wap/first/crmeb/font/iconfont.css"/>
|
||||||
<link rel="stylesheet" type="text/css" href="/public/wap/crmeb/css/style.css?2"/>
|
<link rel="stylesheet" type="text/css" href="{__PUBLIC_PATH}wap/first/crmeb/css/style.css?2"/>
|
||||||
<script type="text/javascript" src="/public/static/js/media.js"></script>
|
<script type="text/javascript" src="{__PUBLIC_PATH}static/js/media.js"></script>
|
||||||
<script type="text/javascript" src="/public/static/plug/jquery-1.10.2.min.js"></script>
|
<script type="text/javascript" src="{__PUBLIC_PATH}static/plug/jquery-1.10.2.min.js"></script>
|
||||||
<script type="text/javascript" src="/public/wap/crmeb/js/common.js"></script>
|
<script type="text/javascript" src="{__PUBLIC_PATH}wap/first/crmeb/js/common.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="user-order-logistics" style="overflow: hidden;">
|
<div class="user-order-logistics" style="overflow: hidden;">
|
||||||
<section>
|
<section>
|
||||||
<div class="product-info flex">
|
<div class="product-info flex">
|
||||||
<div class="picture"><img src="/public/wap/crmeb/images/express_icon.jpg"/></div>
|
<div class="picture"><img src="{__PUBLIC_PATH}wap/first/crmeb/images/express_icon.jpg"/></div>
|
||||||
<div class="logistics-tip flex">
|
<div class="logistics-tip flex">
|
||||||
<div class="company">物流公司:{$order.delivery_name}</div>
|
<div class="company">物流公司:{$order.delivery_name}</div>
|
||||||
<div class="number">物流单号:{$order.delivery_id}</div>
|
<div class="number">物流单号:{$order.delivery_id}</div>
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<div class="logistics-info" style="background-color: inherit;">
|
<div class="logistics-info" style="background-color: inherit;">
|
||||||
<?php if(!$express || $express['status'] != 0){ ?>
|
<?php if(!$express || $express['status'] != 0){ ?>
|
||||||
<div class="empty">
|
<div class="empty">
|
||||||
<img src="/public/wap/crmeb/images/empty_address.png">
|
<img src="{__PUBLIC_PATH}wap/first/crmeb/images/empty_address.png">
|
||||||
<p>暂无查询记录</p>
|
<p>暂无查询记录</p>
|
||||||
</div>
|
</div>
|
||||||
<?php }else{ ?>
|
<?php }else{ ?>
|
||||||
|
|||||||
@ -14,26 +14,16 @@ use service\SystemConfigService;
|
|||||||
class Express
|
class Express
|
||||||
{
|
{
|
||||||
protected static $api = [
|
protected static $api = [
|
||||||
'query'=>'http://jisukdcx.market.alicloudapi.com/express/query',
|
'query'=>'https://wuliu.market.alicloudapi.com/kdi'
|
||||||
'type'=>'http://jisukdcx.market.alicloudapi.com/express/type'
|
|
||||||
];
|
];
|
||||||
|
|
||||||
public static function query($number,$type = 'auto')
|
public static function query($no,$type = '')
|
||||||
{
|
{
|
||||||
$appCode = SystemConfigService::config('system_express_app_code');
|
$appCode = SystemConfigService::config('system_express_app_code');
|
||||||
if(!$appCode) return false;
|
if(!$appCode) return false;
|
||||||
//WIKI https://market.aliyun.com/products/57126001/cmapi011120.html?spm=5176.2020520132.101.4.TYdLsb#sku=yuncode512000008
|
$res = HttpService::getRequest(self::$api['query'],compact('no','type'),['Authorization:APPCODE '.$appCode]);
|
||||||
$res = HttpService::getRequest(self::$api['query'],compact('number','type'),['Authorization:APPCODE '.$appCode]);
|
|
||||||
$result = json_decode($res,true)?:false;
|
$result = json_decode($res,true)?:false;
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function type()
|
|
||||||
{
|
|
||||||
$appCode = SystemConfigService::config('system_express_app_code');
|
|
||||||
if(!$appCode) return false;
|
|
||||||
$res = HttpService::getRequest(self::$api['type'],[],['Authorization:APPCODE '.$appCode]);
|
|
||||||
$result = json_decode($res,true)?:false;
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user