还原
This commit is contained in:
parent
812d49cf17
commit
3ae1f38e60
@ -157,11 +157,8 @@ class ControllerBase extends Phalcon\Mvc\Controller{
|
||||
$this->_LogObj->LogWrite(TIFFANY_API_CHECK_LOG, file_get_contents("php://input"));
|
||||
}
|
||||
/**/
|
||||
//接收请求数据
|
||||
$request_json = file_get_contents("php://input");
|
||||
$request_json = !empty($request_json)?$request_json:$this->request->getPost();
|
||||
//如果未获取到请求数据
|
||||
if(empty($request_json)){
|
||||
if(empty(file_get_contents("php://input"))){
|
||||
//告知用户"系统繁忙,请稍候再试"
|
||||
$rs['errmsg'] = "系统繁忙,请稍候再试";
|
||||
$rs['errcode'] = -1;
|
||||
@ -170,7 +167,7 @@ class ControllerBase extends Phalcon\Mvc\Controller{
|
||||
//如果有获取到请求数据
|
||||
else{
|
||||
//准备判断请求数据整体是否为空
|
||||
$request_arr = json_decode($request_json, true);
|
||||
$request_arr = json_decode(file_get_contents("php://input"), true);
|
||||
//如果请求数据整体为空
|
||||
if(empty($request_arr)){
|
||||
//告知用户"系统繁忙,请稍候再试"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user