收藏
回答

414 (Request-URI Too Large)

框架类型 问题类型 终端类型 AppID 基础库版本
小程序 Bug 客户端 wxc4b7fd4330e66e88 2.6.6.6

小程序在请求后台接口的时候,由于参数过长,受微信限制 ,报 414

报错信息:


这是请求参数:


 {"clinicId":"ff8080816699d7f701669acdba400018","consigneeName":"孙猴子","consigneePhone":"18210122850","provinceCode":"150000","cityCode":"150100","areaCode":"150102","address":"11层","dataList":[{"busId":"4028e4126733fb8e0167364e3cef01e4","sysUserId":"4028e4126733fb8e0167364cdb6801da","freight":"0.00","busList":[{"num":2,"discountPrice":"0.03","activityInfoId":"2c92e0076b45b85a016b6538a21b0042","saleProductId":"2c92e0076b45b85a016b6538a21b0042","medicinalId":"4028e412677dafca01677e026be30020","medicinalName":"氨咖黄敏胶囊","unit":"盒","smallUnit":"粒","scaler":"24","norms":"复方","medicinalCompanyName":"朗致集团万荣药业有限公司","price":"0.06","invalidTime":"2019-04"},{"num":1,"discountPrice":"0.00","activityInfoId":"2c92e0076b45b85a016b6538a2990045","saleProductId":"2c92e0076b45b85a016b6538a2990045","medicinalId":"2c92e0066a6d025b016a6d1bb91d0041","medicinalName":"氨曲南针{圣华曦了}","unit":"盒","smallUnit":"支","scaler":"10","norms":"0.5","medicinalCompanyName":"重庆","price":"0.01","invalidTime":"2019-12"},{"num":2,"discountPrice":"0.30","activityInfoId":"2c92e0076b45b85a016b6538a2710044","saleProductId":"2c92e0076b45b85a016b6538a2710044","medicinalId":"2c92e0066b45db4f016b49466279000b","medicinalName":"吡嗪酰胺片","unit":"瓶","smallUnit":"片","scaler":"100","norms":"0.25g","medicinalCompanyName":"广东台城制药股份有限公司","price":"1.00","invalidTime":"2019-06"},{"num":6,"discountPrice":"","activityInfoId":"2c92e0076b45b85a016b6e5c19f3004f","saleProductId":"2c92e0076b45b85a016b6e5c19f3004f","medicinalId":"40289f956afdcce3016afe43bb320000","medicinalName":"(白加黑)氨氛伪麻片(II)氨苯伪麻片","unit":"盒","smallUnit":"片","scaler":"12","norms":"20g","medicinalCompanyName":"山西同达药业有限公司","price":"45.00","invalidTime":"2019-07"},{"num":3,"discountPrice":"","activityInfoId":"2c92e0076b45b85a016b6e5c19c9004e","saleProductId":"2c92e0076b45b85a016b6e5c19c9004e","medicinalId":"2c92e0066b1c2f1c016b1c4234b6000b","medicinalName":"购物车测试1","unit":"片","smallUnit":"片","scaler":"1","norms":"顺手","medicinalCompanyName":"发送到","price":"10.00","invalidTime":"2019-07"},{"num":2,"discountPrice":"","activityInfoId":"2c92e0076b45b85a016b6e5c199e004d","saleProductId":"2c92e0076b45b85a016b6e5c199e004d","medicinalId":"2c92e0066a6d025b016a6d29bdc3006b","medicinalName":"氨曲南针","unit":"盒","smallUnit":"瓶","scaler":"10","norms":"0.3","medicinalCompanyName":"海南","price":"0.01","invalidTime":"2019-12"},{"num":1,"discountPrice":"0.00","activityInfoId":"2c92e0076b45b85a016b6538a2480043","saleProductId":"2c92e0076b45b85a016b6538a2480043","medicinalId":"2c92e00669b7d2d00169c38747550010","medicinalName":"奥美拉唑肠溶胶囊","unit":"盒","smallUnit":"片","scaler":"1","norms":"20mg","medicinalCompanyName":"山东罗欣药业集团股份有限公司","price":"0.03","invalidTime":"2019-01"},{"num":1,"discountPrice":"2.40","activityInfoId":"2c92e0076b45b85a016b6538a1e80041","saleProductId":"2c92e0076b45b85a016b6538a1e80041","medicinalId":"40289d266b0d39c4016b0db1a57e0000","medicinalName":"sdafdsafd","unit":"粒","smallUnit":"ml","scaler":"11","norms":"","medicinalCompanyName":"sadfasdfas","price":"12.00","invalidTime":"2019-08"}],"orderBusTotalPrice":"303.08"},{"busId":"2c92e0076a493a43016a495396590000","sysUserId":"2c92e0066abe7f2c016abe90283a000f","freight":"0.00","busList":[{"num":1,"discountPrice":"","activityInfoId":"2c92e0066b631894016b6443ea330067","saleProductId":"2c92e0066b631894016b6443ea330067","medicinalId":"2c92e0066b090066016b0cc5b7c80012","medicinalName":"来了来了","unit":"片","smallUnit":"片","scaler":"7","norms":"","medicinalCompanyName":"乐乐乐","price":"9.00","invalidTime":"2019-06"},{"num":1,"discountPrice":"","activityInfoId":"2c92e0066b631894016b644378930066","saleProductId":"2c92e0066b631894016b644378930066","medicinalId":"2c92e0066b2b55bb016b3fa093b60000","medicinalName":"君宝890","unit":"片","smallUnit":"片","scaler":"12","norms":"","medicinalCompanyName":"君宝问","price":"0.50","invalidTime":"2019-03"},{"num":1,"discountPrice":"","activityInfoId":"2c92e0076b45b85a016b69f05b000049","saleProductId":"2c92e0076b45b85a016b69f05b000049","medicinalId":"2c92e0066b649e0f016b69efd6630037","medicinalName":"氨咖黄敏胶囊","unit":"片","smallUnit":"丸","scaler":"1234","norms":"","medicinalCompanyName":"哈哈1","price":"1.00","invalidTime":"2019-11"}],"orderBusTotalPrice":"10.50"},{"busId":"2c92e0066b4b2c9e016b4fa8465a0033","sysUserId":"2c92e0066b4b2c9e016b4fa739bf002f","freight":"0.00","busList":[{"num":1,"discountPrice":"","activityInfoId":"2c92e0066b649e0f016b6574d18f0028","saleProductId":"2c92e0066b631894016b643477af0064","medicinalId":"2c92e0066b631894016b643477600063","medicinalName":"测试药品01","unit":"瓶","smallUnit":"粒","scaler":"10","norms":"","medicinalCompanyName":"朗致01","price":"0.01","invalidTime":""}],"orderBusTotalPrice":"0.01"}],"paymentType":1,"paymentAmount":"313.59","comment":"","province":"内蒙古自治区","city":"呼和浩特市","area":"新城区","accountBillType":1,"isInvoice":2,"isOutbound":1,"isQuality":1,"isReport":2}

。  




除了减少参数传递。还有没有其他解决方案?

回答关注问题邀请回答
收藏

1 个回答

  • 铭锋科技
    铭锋科技
    2019-06-19

    改为post,如果需要其他方法,请使用搜索引擎搜索

    2019-06-19
    有用
    回复
登录 后发表内容