获取小程序本地ip地址 wx.request({ url: 'https://tianqiapi.com/ip/', success: function (e) { // console.log(e.data) // console.log(e.data.query) var IP = e.data.ip that.setData({ IP: IP }) var ip = that.data.IP that.checkKeyword(ip) that.checkKeyword1(ip) } });