收藏
回答

微信小程序请求中的突然多出的m-WeiXin是什么意思,最后导致请求失败

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.request 工具 6.5.3 2.0.0

- 当前 Bug 的表现(可附上截图)


- 预期表现

原来请求的地址为:“https://mall.sn9527.com/Product/GetProductAttr?pid=****”

这是怎么回事呢,又应该怎么解决呢,向大神们求解

- 复现路径


- 提供一个最简复现 Demo


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

1 个回答

  • 是小白啊
    是小白啊
    2019-05-07

    麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2019-05-07
    有用 1
    回复 15
    • 曹国防
      曹国防
      2019-05-07

      let that = this;

      //获取商品详情

      wx.request({

      url: "https://mall.sn9527.com/Product/GetProductAttr",

      data: { pid:40142 },

      success: function(res){

      let list = res.data.contents;

      let showDL = that.data.showDL;

      showDL[0] = list;

      that.setData({ showDL })

      console.log('商品详情:',res)

      }

      })


      2019-05-07
      回复
    • 曹国防
      曹国防
      2019-05-07回复曹国防

      ???


      2019-05-07
      回复
    • 曹国防
      曹国防
      2019-05-07回复曹国防

      在工具上的结果谷歌浏览器中的结果

      2019-05-07
      回复
    • 是小白啊
      是小白啊
      2019-05-07回复曹国防

      接口404了

      2019-05-07
      回复
    • 曹国防
      曹国防
      2019-05-07回复曹国防


      另一个接口却可以

      2019-05-07
      回复
    查看更多(10)
登录 后发表内容