- 小程序直播入口消失了,上周五能看到这个申请菜单,今天进入就没有这个菜单了,麻烦看下怎么回事?
为什么我的小程序审核通过后,小程序功能里面的直播菜单没有了? [图片] [图片] 我的小程序类目和支付都满足直播需求。 左侧的功能 直播菜单没有了
2023-06-07 - 为何我的小程序后台,没有直播功能菜单?
为何我的小程序后台,没有直播功能菜单。 appid:wx8b3dc5e213b98965
2023-06-07 - 我这个是之前的自动弹窗授权,哪位大哥能帮我修改下弹窗授权?在线等在线等,急急
// app.js App({ d: { // hostUrl: 'https://wp.gwgas.cn/index.php', hostImg: 'https://img.ynjmzb.net', hostVideo: 'https://zhubaotong-file.oss-cn-beijing.aliyuncs.com', userId: 1, // appId:"", 在下面函数sessionkey中调用appId,secret // appKey:"", ceshiUrl:'https://wp.gwgas.cn/index.php', }, onLaunch: function () { //调用API从本地缓存中获取数据 var logs = wx.getStorageSync('logs') || [] logs.unshift(Date.now()) wx.setStorageSync('logs', logs); //login this.getUserInfo(); }, getUserInfo:function(cb){ var that = this if(this.globalData.userInfo){ typeof cb == "function" && cb(this.globalData.userInfo) }else{ //调用登录接口 wx.login({ success: function (res) { var code = res.code; //get wx user simple info wx.getUserInfo({ success: function (res) { that.globalData.userInfo = res.userInfo typeof cb == "function" && cb(that.globalData.userInfo); //get user sessionKey //get sessionKey that.getUserSessionKey(code); } }); } }); } }, getUserSessionKey:function(code){ //用户的订单状态 var that = this; wx.request({ url: that.d.ceshiUrl + '/Api/Login/getsessionkey', method:'post', data: { code: code, appId: "wxxxcd4xxxxxxxxxx28x", secret: "0xxxx8xxxdxe98faxxxx7fbxx0bxxx" }, header: { 'Content-Type': 'application/x-www-form-urlencoded' }, success: function (res) { //--init data var data = res.data; if(data.status==0){ wx.showToast({ title: data.err, duration: 2000 }); return false; } that.globalData.userInfo['sessionId'] = data.session_key; that.globalData.userInfo['openid'] = data.openid; that.onLoginUser(); }, fail:function(e){ wx.showToast({ title: '网络异常!err:getsessionkeys', duration: 2000 }); }, }); }, onLoginUser:function(){ var that = this; var user = that.globalData.userInfo; wx.request({ url: that.d.ceshiUrl + '/Api/Login/authlogin', method:'post', data: { SessionId: user.sessionId, gender:user.gender, NickName: user.nickName, HeadUrl: user.avatarUrl, openid:user.openid }, header: { 'Content-Type': 'application/x-www-form-urlencoded' }, success: function (res) { //--init data var data = res.data.arr; var status = res.data.status; if(status!=1){ wx.showToast({ title: res.data.err, duration: 3000 }); return false; } that.globalData.userInfo['id'] = data.ID; that.globalData.userInfo['NickName'] = data.NickName; that.globalData.userInfo['HeadUrl'] = data.HeadUrl; var userId = data.ID; if (!userId){ wx.showToast({ title: '登录失败!', duration: 3000 }); return false; } that.d.userId = userId; }, fail:function(e){ wx.showToast({ title: '网络异常!err:authlogin', duration: 2000 }); }, }); }, getOrBindTelPhone:function(returnUrl){ var user = this.globalData.userInfo; if(!user.tel){ wx.navigateTo({ url: 'pages/binding/binding' }); } }, globalData:{ userInfo:null }, onPullDownRefresh: function (){ wx.stopPullDownRefresh(); } });
2020-03-18