作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

合并分支 'wangxiaogang' 到 'master'

Wangxiaogang



查看合并请求 !29
... ... @@ -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
... ...