切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
继续操作前请注册或者登录。
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
688e0aa62ea9da78eef73502fed668db04f13816
1 个父辈
febf0766
master
...
liuzhen
wangxiaogang
1 个管道 的构建
通过
耗费 0 秒
预约取件接口改为电子面单接口
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
5 行增加
和
4 行删除
app/portal/controller/BirdController.php
public/index.php
app/portal/controller/BirdController.php
查看文件 @
688e0aa
...
...
@@ -36,7 +36,7 @@ class BirdController extends HomeBaseController
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
createOrder
(
$indent_id
=
13
2
)
public
function
createOrder
(
$indent_id
=
13
3
)
{
if
(
empty
(
$indent_id
)){
return
"缺少必要参数"
;
...
...
@@ -58,12 +58,12 @@ class BirdController extends HomeBaseController
$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://
sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json
'
);
defined
(
'ReqURL'
)
or
define
(
'ReqURL'
,
'http://
api.kdniao.com/api/EOrderService
'
);
//构造在线下单提交信息
$eorder
=
[];
$eorder
[
"ShipperCode"
]
=
"
SF
"
;
$eorder
[
"ShipperCode"
]
=
"
$indent[logistic_name]
"
;
$eorder
[
"OrderCode"
]
=
$indent
[
'order_number'
];
$eorder
[
"PayType"
]
=
1
;
$eorder
[
"ExpType"
]
=
1
;
...
...
@@ -100,6 +100,7 @@ class BirdController extends HomeBaseController
//解析在线下单返回结果
$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'
]]);
...
...
public/index.php
查看文件 @
688e0aa
...
...
@@ -10,7 +10,7 @@
// [ 入口文件 ]
// 调试模式开关
define
(
"APP_DEBUG"
,
fals
e
);
define
(
"APP_DEBUG"
,
tru
e
);
// 定义CMF根目录,可更改此目录
define
(
'CMF_ROOT'
,
__DIR__
.
'/../'
);
...
...
请
注册
或
登录
后发表评论