Toggle navigation
Toggle navigation
This project
Loading...
Sign in
other
/
yohomarket
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
742785e83a51b6a4c46548ebca841f546e3ed934
1 parent
af0862cb
物流添加图标
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
yohomarket.bright.knight/YHMApi/App/V1/Logistics.php
yohomarket.bright.knight/YHMConfig/Image.php
yohomarket.bright.knight/YHMApi/App/V1/Logistics.php
View file @
742785e
...
...
@@ -54,9 +54,10 @@ class YHMApi_App_V1_Logistics extends YHMApi_App_V1_Base {
$list
=
YHMOrders_Models_Logistics_Client
::
getOrderLogistics
(
$order_code
);
if
(
$list
)
{
$retData
=
json_decode
(
$list
[
'detail_list'
],
true
);
return
self
::
result
(
200
,
'获取成功'
,
$retData
);
$retData
=
json_decode
(
$list
[
'detail_list'
],
true
);
return
self
::
result
(
200
,
'获取成功'
,
$retData
);
}
$logo
=
empty
(
$company
[
'logo'
])
?
YHMConfig_Image
::
LOGISTICS_COMPANY_ICO
:
$company
[
'logo'
];
$retData
=
array
();
//先查库, 如果库里有信息就不调用接口
try
{
...
...
@@ -65,7 +66,7 @@ class YHMApi_App_V1_Logistics extends YHMApi_App_V1_Base {
$retData
=
array
(
'logistics_company'
=>
$company
[
'company_name'
],
'logistics_code'
=>
$order_delivery
[
'delivery_code'
],
'logistics_logo'
=>
YHMUpload_Images
::
template
(
$
company
[
'logo'
]
,
'yhfair'
),
'logistics_logo'
=>
YHMUpload_Images
::
template
(
$
logo
,
'yhfair'
),
'detail_list'
=>
array
()
);
$url
=
"http://www.kuaidi100.com/query?type=
$company_code
&postid="
.
$order_delivery
[
'delivery_code'
]
.
"&id=1&valicode=&temp=0.2546041894394805"
;
...
...
yohomarket.bright.knight/YHMConfig/Image.php
View file @
742785e
<?php
class
YHMConfig_Image
{
const
USER_HEAD_ICO
=
'yhfair-user-head.d0861a87d5c6986dd490120524ff3e04.jpg'
;
const
LOGISTICS_COMPANY_ICO
=
'yhfair-user-head.d0861a87d5c6986dd490120524ff3e04.jpg'
;
const
USER_BACKGROUD_IMG
=
'yhfair-user-background.7c1ab223b0aa88d95abd2d6a4ef6ddca.jpg'
;
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment