获取app传入的json值处理

$getDatas = $_POST;
if(empty($getDatas))
$getDatas = file_get_contents("php://input");
$getDatas = json_decode($getDatas,true);

 

posted @ 2018-03-03 15:40  王静文  阅读(166)  评论(0编辑  收藏  举报