切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
48ec0ea9485c6466e776a98c9f470be9ee5bb156
1 个父辈
6af66039
1 个管道 的构建
通过
耗费 1 秒
1
变更
4
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
15 行增加
和
15 行删除
app/admin/controller/BirdController.php
app/config.php
app/portal/controller/BirdController.php
public/themes/simpleboot3/public/assets/css/log.css
app/admin/controller/BirdController.php
查看文件 @
48ec0ea
...
...
@@ -36,8 +36,13 @@ class BirdController extends AdminBaseController
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
createOrder
(
$indent_id
=
null
)
public
function
createOrder
()
{
if
(
empty
(
$_POST
[
'indent_id'
])){
$indent_id
=
null
;
}
else
{
$indent_id
=
$_POST
[
'indent_id'
];
}
if
(
empty
(
$indent_id
)){
return
"缺少必要参数"
;
}
...
...
app/config.php
查看文件 @
48ec0ea
...
...
@@ -236,12 +236,12 @@ $configs = [
//快递鸟参数配置
'bird'
=>
[
//正式
'EBusinessID'
=>
'1472267'
,
//电商ID
'AppKey'
=>
'cc8314fd-0381-4e37-ad17-239287f1d8d2'
,
//AppKey
/* 'EBusinessID' => '1472267',//电商ID
'AppKey' => 'cc8314fd-0381-4e37-ad17-239287f1d8d2',//AppKey*/
//测试
// 'EBusinessID' => 'test1472267',
// 'AppKey' => 'f84c7071-a6c7-48ce-8fe0-11b719d88a1d',
],
'EBusinessID'
=>
'test1472267'
,
'AppKey'
=>
'f84c7071-a6c7-48ce-8fe0-11b719d88a1d'
,
],
//快递鸟预约取件接口寄件人参数
'sender'
=>
[
'Name'
=>
"姚鹏程"
,
...
...
app/portal/controller/BirdController.php
查看文件 @
48ec0ea
...
...
@@ -36,13 +36,8 @@ class BirdController extends HomeBaseController
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
createOrder
()
public
function
createOrder
(
$indent_id
=
null
)
{
if
(
empty
(
$_POST
[
'indent_id'
])){
$indent_id
=
null
;
}
else
{
$indent_id
=
$_POST
[
'indent_id'
];
}
if
(
empty
(
$indent_id
)){
return
"缺少必要参数"
;
}
...
...
@@ -106,14 +101,13 @@ class BirdController extends HomeBaseController
//解析在线下单返回结果
$result
=
json_decode
(
$jsonResult
,
true
);
cache
(
'test'
,
$result
);
dump
(
$result
);
die
;
if
(
$result
[
"ResultCode"
]
==
"100"
)
{
if
(
!
empty
(
$result
[
'Order'
][
'LogisticCode'
])){
$indentModel
->
updateData
([
'id'
=>
$indent_id
],[
'logistic_code'
=>
$result
[
'Order'
][
'LogisticCode'
]]);
}
return
json_encode
([
'code'
=>
20000
,
'msg'
=>
'SUCCESS'
,
'data'
=>
$result
]);
//返回快递单号
return
dump
([
'code'
=>
20000
,
'msg'
=>
'SUCCESS'
,
'data'
=>
$result
]);
//返回快递单号
}
else
{
return
json_encode
([
'code'
=>
40000
,
'msg'
=>
$result
[
'Reason'
]]);
return
dump
([
'code'
=>
40000
,
'msg'
=>
$result
[
'Reason'
]]);
}
}
...
...
public/themes/simpleboot3/public/assets/css/log.css
查看文件 @
48ec0ea
...
...
@@ -344,6 +344,7 @@
font-weight
:
400
;
line-height
:
0.36rem
;
color
:
#333
;
padding
:
0
;
}
...
...
请
注册
或
登录
后发表评论