切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
0d0cd5655574ff45a38896371999ddb09804afcb
1 个父辈
1b615e88
1 个管道 的构建
通过
耗费 0 秒
接收推送消息
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
12 行增加
和
11 行删除
app/config.php
app/portal/controller/LoadController.php
app/config.php
查看文件 @
0d0cd56
...
...
@@ -236,11 +236,11 @@ $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'
=>
[
...
...
app/portal/controller/LoadController.php
查看文件 @
0d0cd56
...
...
@@ -32,17 +32,18 @@ class LoadController extends HomeBaseController
public
function
notify
(){
$param
=
$this
->
request
->
param
();
if
(
empty
(
$param
[
'RequestType'
])){
$this
->
error
(
'error'
);
}
if
(
$param
[
'RequestType'
]
!=
101
){
$this
->
error
(
'error'
);
}
// if(empty($param['RequestType'])){
// $this->error('error');
// }
// if($param['RequestType'] != 101){
// $this->error('error');
// }
cache
(
'param'
,
$param
);
$result
=
json_decode
(
$param
[
'RequestData'
],
true
);
cache
(
'result'
,
$result
);
$bird
=
config
(
'bird'
);
echo
'{
"EBusinessID": "'
.
$
result
[
0
]
[
'EBusinessID'
]
.
'",
"EBusinessID": "'
.
$
bird
[
'EBusinessID'
]
.
'",
"UpdateTime": "'
.
date
(
'Y-m-d H:i:s'
,
time
())
.
'",
"Success": "'
.
true
.
'",
"Reason": "'
.
123
.
'"
...
...
请
注册
或
登录
后发表评论