mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 20:42:49 +00:00
修改后台查看物流样式,更换物流查询接口https://market.aliyun.com/products/56928004/cmapi021863.html
This commit is contained in:
parent
c647456e00
commit
4caf1e18cc
@ -14,19 +14,19 @@
|
||||
<!-- QQ强制竖屏 -->
|
||||
<meta name="x5-orientation" content="portrait">
|
||||
<title>物流信息</title>
|
||||
<link rel="stylesheet" type="text/css" href="/public/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/wap/crmeb/css/style.css?2"/>
|
||||
<script type="text/javascript" src="/public/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/wap/crmeb/js/common.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="{__PUBLIC_PATH}static/css/reset.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{__PUBLIC_PATH}wap/first/crmeb/font/iconfont.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{__PUBLIC_PATH}wap/first/crmeb/css/style.css?2"/>
|
||||
<script type="text/javascript" src="{__PUBLIC_PATH}static/js/media.js"></script>
|
||||
<script type="text/javascript" src="{__PUBLIC_PATH}static/plug/jquery-1.10.2.min.js"></script>
|
||||
<script type="text/javascript" src="{__PUBLIC_PATH}wap/first/crmeb/js/common.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="user-order-logistics" style="overflow: hidden;">
|
||||
<section>
|
||||
<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="company">物流公司:{$order.delivery_name}</div>
|
||||
<div class="number">物流单号:{$order.delivery_id}</div>
|
||||
@ -35,7 +35,7 @@
|
||||
<div class="logistics-info" style="background-color: inherit;">
|
||||
<?php if(!$express || $express['status'] != 0){ ?>
|
||||
<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>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
|
||||
@ -14,26 +14,16 @@ use service\SystemConfigService;
|
||||
class Express
|
||||
{
|
||||
protected static $api = [
|
||||
'query'=>'http://jisukdcx.market.alicloudapi.com/express/query',
|
||||
'type'=>'http://jisukdcx.market.alicloudapi.com/express/type'
|
||||
'query'=>'https://wuliu.market.alicloudapi.com/kdi'
|
||||
];
|
||||
|
||||
public static function query($number,$type = 'auto')
|
||||
public static function query($no,$type = '')
|
||||
{
|
||||
$appCode = SystemConfigService::config('system_express_app_code');
|
||||
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('number','type'),['Authorization:APPCODE '.$appCode]);
|
||||
$res = HttpService::getRequest(self::$api['query'],compact('no','type'),['Authorization:APPCODE '.$appCode]);
|
||||
$result = json_decode($res,true)?:false;
|
||||
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