切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
053561ac4853175ea96889c4132f35bfaeccf12e
1 个父辈
54a33ef2
接收推送消息
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
19 行增加
和
14 行删除
app/portal/controller/LoadController.php
app/portal/controller/LoadController.php
查看文件 @
053561a
...
...
@@ -33,20 +33,25 @@ class LoadController extends HomeBaseController
}
public
function
notify
(){
$RequestType
=
$_POST
[
'RequestType'
];
$RequestData
=
$_POST
[
'RequestData'
];
if
(
empty
(
$RequestType
)){
$this
->
error
(
'error'
);
}
if
(
$RequestType
!=
101
){
$this
->
error
(
'error'
);
$data
=
file_get_contents
(
'php://input'
);
$msg
=
explode
(
"&"
,
$data
);
foreach
(
$msg
as
$k
=>
$v
)
{
$p
=
explode
(
"="
,
$v
);
if
(
$p
[
0
]
==
"RequestData"
)
{
$result
[
$p
[
0
]]
=
json_decode
(
urldecode
(
$p
[
1
]),
true
);
}
else
{
$result
[
$p
[
0
]]
=
urldecode
(
$p
[
1
]);
}
}
$result
=
json_decode
(
$RequestData
,
true
);
cache
(
'result'
,
$result
);
$bird
=
config
(
'bird'
);
$date
=
date
(
"Y-m-d H:i:s"
,
time
());
$data
=
'{ "EBusinessID": "test1472267", "UpdateTime": "'
.
$date
.
'", "Success": true, "Reason": ""}'
;
cache
(
'data'
,
$data
);
return
$data
;
/*echo '<pre>';
print_r($res);exit;*/
$data
=
'{
"EBusinessID": "'
.
$result
[
'RequestData'
][
'EBusinessID'
]
.
'",
"UpdateTime": "'
.
date
(
'Y-m-d H:i:s'
,
time
())
.
'",
"Success": "'
.
$res
[
'status'
]
.
'",
"Reason": "'
.
$res
[
'err_msg'
]
.
'"
}'
;
cache
(
$data
);
echo
$data
;
}
}
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论