...
|
...
|
@@ -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 |
...
|
...
|
|