- 出现一个问题,没有setdata,却能自己赋值?
form: { page: 1, size: 10, bname: '', name: '', }, let form = that.data.form form.page = form.page + 1 if(code == 0){that.setData({['form.page':form.page})} 没有触发下面条件 page却变了? 什么情况?
2021-09-15 - H5统一下单错误?
"{\"allHeaders\":[{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"nginx\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Server\",\"value\":\"nginx\",\"valuePos\":7},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"Tue\",\"parameterCount\":0,\"parameters\":[]},{\"name\":\"27 Jul 2021 06:48:17 GMT\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Date\",\"value\":\"Tue, 27 Jul 2021 06:48:17 GMT\",\"valuePos\":5},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"application/json\",\"parameterCount\":1,\"parameters\":[{\"name\":\"charset\",\"value\":\"utf-8\"}]}],\"name\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\",\"valuePos\":13},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"184\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Content-Length\",\"value\":\"184\",\"valuePos\":15},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"keep-alive\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Connection\",\"value\":\"keep-alive\",\"valuePos\":11},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"timeout\",\"parameterCount\":0,\"parameters\":[],\"value\":\"8\"}],\"name\":\"Keep-Alive\",\"value\":\"timeout=8\",\"valuePos\":11},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"no-cache\",\"parameterCount\":0,\"parameters\":[]},{\"name\":\"must-revalidate\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Cache-Control\",\"value\":\"no-cache, must-revalidate\",\"valuePos\":14},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"nosniff\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"X-Content-Type-Options\",\"value\":\"nosniff\",\"valuePos\":23},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"xxx\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Request-ID\",\"value\":\"xxx\",\"valuePos\":11},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"zh-CN\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Content-Language\",\"value\":\"zh-CN\",\"valuePos\":17},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"xxx\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Wechatpay-Nonce\",\"value\":\"xxx\",\"valuePos\":16},{\"buffer\":{\"empty\":false,\"full\":true},\"elements\":[{\"name\":\"xxx\",\"parameterCount\":0,\"parameters\":[],\"value\":\"=\"}],\"name\":\"Wechatpay-Signature\",\"value\":\"xxx\",\"valuePos\":20},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"xxx\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Wechatpay-Timestamp\",\"value\":\"xxx\",\"valuePos\":20},{\"buffer\":{\"empty\":false,\"full\":false},\"elements\":[{\"name\":\"xxx\",\"parameterCount\":0,\"parameters\":[]}],\"name\":\"Wechatpay-Serial\",\"value\":\"xxx\",\"valuePos\":17}],\"entity\":{\"chunked\":false,\"contentLength\":184,\"contentType\":{\"$ref\":\"$.allHeaders[2]\"},\"repeatable\":false,\"streaming\":true},\"locale\":\"zh_CN\",\"params\":{\"names\":[]},\"protocolVersion\":{\"major\":1,\"minor\":1,\"protocol\":\"HTTP\"},\"statusLine\":{\"protocolVersion\":{\"$ref\":\"$.protocolVersion\"},\"reasonPhrase\":\"Bad Request\",\"statusCode\":400}}"
2021-07-27 - H5下单API 400?
Map<String,Object> map = new HashMap<>(); map.put("appId",appId); map.put("mchid",mchId); map.put("description",appId); map.put("out_trade_no",orderSn); map.put("notify_url","https://weixin.qq.com/"); Map<String,Object> amount = new HashMap<>(); amount.put("total",money); amount.put("currency","CNY"); map.put("amount",amount); Map<String,Object> sceneInfo = new HashMap<>(); sceneInfo.put("payer_client_ip",ip); Map<String,Object> h5Info = new HashMap<>(); h5Info.put("type","Wap"); sceneInfo.put("h5_info",h5Info); map.put("scene_info",sceneInfo); String param = JSON.toJSONString(map);
2021-07-27