最近正研究php,请问php怎么在接口中获取post过来的json数据有什么好的方法?
先用json_encode加密,接口用json_decode解密 如果要考虑到URL解析。 可再用urlencode再加密,然后接口用urlencode解密。即可获取到传递过来的JSON数据。