官方不回复的吗?
第三方小程序获取token时返回 "工商数据返回:“企业已注销”?,但是之前可以正常获取的第三方小程序获取token时,返回 "msg": "工商数据返回:“企业已注销”",但是之前可以正常获取到;并且提交过代码; 使用的主体是上面这个 [图片]
2020-02-02意思,我们做中药材的不能做小程序咯?
小程序类目选择中,中药材选择什么类目?中药材只发了营业执照这是营业执照,做中药材批发的都只有这个证件; [图片] 官方反馈选择初级农产品[图片] 整个市场做中药材的,大家的营业执照都没有这个初级农产品,只有中药材 [图片]
2019-08-16是不是没设置小程序服务器域名和业务域名
真机测试没问题但是到线上后无显示效果:wx.getLocation?[代码]onLoad: [代码][代码]function[代码] [代码](options) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.getSetting({[代码][代码] [代码][代码]success: (res) => {[代码][代码] [代码][代码]if[代码] [代码](res.authSetting[[代码][代码]'scope.userLocation'[代码][代码]] != undefined && res.authSetting[[代码][代码]'scope.userLocation'[代码][代码]] != [代码][代码]true[代码][代码]) {[代码][代码]//非初始化进入该页面,且未授权[代码][代码] [代码][代码]wx.showModal({[代码][代码] [代码][代码]title: [代码][代码]'是否授权当前位置'[代码][代码],[代码][代码] [代码][代码]content: [代码][代码]'需要获取您的地理位置,请确认授权,否则无法获取您所需数据'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]if[代码] [代码](res.cancel) {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权失败'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](res.confirm) {[代码][代码] [代码][代码]wx.openSetting({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](dataAu) {[代码][代码] [代码][代码]console.log(dataAu + [代码][代码]"同意授权"[代码][代码]);[代码][代码] [代码][代码]if[代码] [代码](dataAu.authSetting[[代码][代码]"scope.userLocation"[代码][代码]] == [代码][代码]true[代码][代码]) {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权成功'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]//再次授权,调用getLocationt的API[代码][代码] [代码][代码]that.getaddress();[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权失败'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](res.authSetting[[代码][代码]'scope.userLocation'[代码][代码]] == undefined) {[代码][代码]//初始化进入[代码][代码] [代码][代码]that.getaddress();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]else[代码] [代码]{ [代码][代码]//授权后默认加载[代码][代码] [代码][代码]that.getaddress();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码]},[代码] [代码]getaddress() {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]//实例化腾讯地图API核心类[代码][代码] [代码][代码]qqmapsdk = [代码][代码]new[代码] [代码]QQMapWX({[代码][代码] [代码][代码]key: [代码][代码]'ssdasdasd'[代码][代码] [代码][代码]});[代码][代码] [代码][代码]//1、获取当前的地理位置、速度[代码][代码] [代码][代码]wx.getLocation({[代码][代码] [代码][代码]type: [代码][代码]'wgs84'[代码][代码], [代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]console.log([代码][代码]"latitude:"[代码] [代码]+ res.latitude + [代码][代码]"---longitude:"[代码] [代码]+ res.longitude + [代码][代码]"---speed:"[代码] [代码]+ res.speed + [代码][代码]"---accuracy:"[代码] [代码]+ res.accuracy);[代码][代码] [代码][代码]//2、根据坐标获取当前位置名称,显示在顶部:腾讯地图逆地址解析[代码][代码] [代码][代码]var[代码] [代码]sessionID = wx.getStorageSync([代码][代码]'sessionId'[代码][代码]) ? wx.getStorageSync([代码][代码]'sessionId'[代码][代码]) : [代码][代码]''[代码][代码];[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]lat: res.latitude,[代码][代码] [代码][代码]lng: res.longitude[代码][代码] [代码][代码]});[代码][代码] [代码][代码]var[代码] [代码]mymes = {[代码][代码] [代码][代码]lat: res.latitude,[代码][代码] [代码][代码]lng: res.longitude[代码][代码] [代码][代码]};[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: [代码][代码]'https:/API/wxgetdata/TranslateLocation'[代码][代码],[代码][代码] [代码][代码]data: mymes,[代码][代码] [代码][代码]//dataType: 'json',[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'sessionID'[代码][代码]: sessionID[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success(result) {[代码][代码] [代码][代码]console.log(result);[代码][代码] [代码][代码]var[代码] [代码]mes = result.data;[代码][代码] [代码][代码]var[代码] [代码]jsondata = mes.data;[代码][代码] [代码][代码]console.log(jsondata);[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]lat: jsondata.lat,[代码][代码] [代码][代码]lng: jsondata.lng,[代码][代码] [代码][代码]curlocation: jsondata.address[代码][代码] [代码][代码]});[代码][代码] [代码][代码]that.getData();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'授权失败'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码]},[代码]以上是部分核心代码,不知道是什么原因真机测试没问题但是就是线上都没有授权弹窗提示,页面为空白页,以下为实例图: [图片]
2019-08-12