nginx中可以使用如下配置返回json格式信息:
location /notify {
add_header "Content-Type" "application/json";
return 200 "{\"code\":0, \"msg\":\"接收成功\"}";
}