切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
0ad2c6bd36a9e0a544ed806da2200b3e27d9c8aa
1 个父辈
c159af5f
1 个管道 的构建
通过
耗费 16 秒
电子面单
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
4 行删除
app/admin/controller/BirdController.php
app/admin/controller/BirdController.php
查看文件 @
0ad2c6b
...
...
@@ -30,7 +30,7 @@ class BirdController extends AdminBaseController
}
/**
*
预约取件
*
电子面单
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
...
...
@@ -63,7 +63,9 @@ class BirdController extends AdminBaseController
$region
=
explode
(
' '
,
$address
[
'region'
]);
//请求url,接口正式地址:http://api.kdniao.com/api/OOrderService 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json
defined
(
'ReqURL'
)
or
define
(
'ReqURL'
,
'http://api.kdniao.com/api/OOrderService'
);
// defined('ReqURL') or define('ReqURL', 'http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json');
//请求url,接口正式地址:http://api.kdniao.com/api/EOrderService 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json
defined
(
'ReqURL'
)
or
define
(
'ReqURL'
,
'http://api.kdniao.com/api/EOrderService'
);
//构造在线下单提交信息
...
...
@@ -107,8 +109,8 @@ class BirdController extends AdminBaseController
$result
=
json_decode
(
$jsonResult
,
true
);
cache
(
'test'
,
$result
);
if
(
$result
[
"ResultCode"
]
==
"100"
)
{
if
(
!
empty
(
$result
[
'Order'
][
'LogisticCode'
])){
$indentModel
->
updateData
([
'id'
=>
$indent_id
],[
'logistic_code'
=>
$result
[
'Order'
][
'LogisticCode'
]]);
if
(
!
empty
(
$result
[
'Order'
][
'KDNOrderCode'
])){
$indentModel
->
updateData
([
'id'
=>
$indent_id
],[
'logistic_code'
=>
$result
[
'Order'
][
'KDNOrderCode'
]]);
}
return
json_encode
([
'code'
=>
20000
,
'msg'
=>
'SUCCESS'
,
'data'
=>
$result
]);
//返回快递单号
}
else
{
...
...
请
注册
或
登录
后发表评论