后台收到的字段内容本来是中文的,但是出现乱码的情况,那就需要前端解决指定编码;
比如:
{"product_id":"??"}
Request Headers:x-forwarded-for=***.**.***.***;x-real-ip=***.**.***.***;host=8080;x-forwarded-proto=http;connection=close;content-length=329;user-agent=python-requests/2.22.0;accept-encoding=gzip, deflate;accept=*/*;content-type=application/json;
查询日志发现请求头的content-type=application/json
改成:content-type=application_json_utf8