search

Home  >  Q&A  >  body text

When initiating a network request, an error occurs in the URL?

url.PNGurl1.PNG

sikelasikela2510 days ago961

reply all(1)I'll reply

  • sikela

    sikela2018-05-12 23:42:10

    Completely followed the video step by step, but used Yiyuan's API. Yiyuan showed that the call was successful

    url2.PNGurl3.PNG

    getexpressinfo: function(nu,cb ){

    wx.request({

    url: ' http://route.showapi.com/64-19?showapi_appid=64766&showapi_sign=dd5102d2fd0b4142b0fab055a6bbf6b1&com=ems&nu='+nu, // For example only, not the real interface address

    data: {

    x: '',

    y: ''

    },

    //header: {

    //'showapi_sign': '698d51a19d8a121ce581499d7b701668' //Default value

    // },

    success: function (res) {

    console.log(res.data)

    //cb(res.data)

    }

    })


    },


    reply
    0
  • Cancelreply