切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
anyv
6 years ago
提交
edd1e397a6a63f537dc12eebe304adba52dcdf1d
2 个父辈
4c853e3c
8b96686a
1 个管道 的构建
通过
耗费 0 秒
Merge branch 'master' of
http://114.215.101.231:8099/anyv/xkeasy
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
18 行增加
和
13 行删除
app/portal/controller/LoadController.php
app/portal/controller/LoadController.php
查看文件 @
edd1e39
...
...
@@ -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": ""}'
;
/*echo '<pre>';
print_r($res);exit;*/
$data
=
'{
"EBusinessID": "'
.
$result
[
'RequestData'
][
'EBusinessID'
]
.
'",
"UpdateTime": "'
.
date
(
'Y-m-d H:i:s'
,
time
())
.
'",
"Success": true,
"Reason": ""
}'
;
cache
(
'data'
,
$data
);
return
$data
;
echo
$data
;
}
}
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论