- 小程序学生验证。开发者暂未开通该功能,实际已申请并开通。
[图片][图片]
2024-01-31 - live-player配置live-player可以做双方互相视频沟通对话吗?
因为要录制视频下来,所以无法用voip-room
2022-03-14 - 解密有概率出现41003的问题
在登陆的时候,如果隔一段时间,再点击登陆按钮,第一次会失败,服务解密那里41003,第二次才能成功 在获取群分享的open_gid也一样,用户第一次点击分享卡片进来是可以的,后面再点击就41003了 这是我群分享的写法 [代码]this[代码][代码].share_tk();[代码][代码]share_tk: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]var[代码] [代码]shareTicket = wx.getStorageSync([代码][代码]'shareTicket'[代码][代码]);[代码][代码] [代码][代码]var[代码] [代码]shop_id = wx.getStorageSync([代码][代码]'shop_id'[代码][代码]);[代码][代码] [代码][代码]if[代码] [代码](!util.isNotEmpty(shareTicket)) {[代码][代码] [代码][代码]return[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]var[代码] [代码]t = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.getShareInfo({[代码][代码] [代码][代码]shareTicket: shareTicket,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.checkSession({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]var[代码] [代码]session_key = wx.getStorageSync([代码][代码]'session_key'[代码][代码]);[代码][代码] [代码][代码]t.ajax_share(res.encryptedData, res.iv, session_key);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]wx.login({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](lres) {[代码][代码] [代码][代码]if[代码] [代码](lres.code) {[代码][代码] [代码][代码]var[代码] [代码]post_data = {[代码][代码] [代码][代码]m: [代码][代码]'mall'[代码][代码],[代码][代码] [代码][代码]c: [代码][代码]'ApiLogin'[代码][代码],[代码][代码] [代码][代码]a: [代码][代码]'get_session'[代码][代码],[代码][代码] [代码][代码]code: lres.code,[代码][代码] [代码][代码]};[代码][代码] [代码][代码]util.ajax(post_data, [代码][代码]function[代码] [代码](data) {[代码][代码] [代码][代码]wx.setStorageSync([代码][代码]'session_key'[代码][代码], data.data);[代码][代码] [代码][代码]t.ajax_share(encryptedData, iv, data.data);[代码][代码] [代码][代码]}, [代码][代码]null[代码][代码], [代码][代码]true[代码][代码]);[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]});[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码]//分享函数[代码][代码] [代码][代码]ajax_share: [代码][代码]function[代码] [代码](encryptedData, iv, session_key) {[代码][代码] [代码][代码]var[代码] [代码]shareTicket = wx.getStorageSync([代码][代码]'shareTicket'[代码][代码]);[代码][代码] [代码][代码]var[代码] [代码]shop_id = wx.getStorageSync([代码][代码]'shop_id'[代码][代码]);[代码][代码] [代码][代码]var[代码] [代码]token = wx.getStorageSync([代码][代码]'token'[代码][代码]);[代码][代码] [代码][代码]var[代码] [代码]t = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]console.log([代码][代码]'发送分享信息'[代码][代码]);[代码][代码] [代码][代码]var[代码] [代码]post_data = {[代码][代码] [代码][代码]m: [代码][代码]'Share'[代码][代码],[代码][代码] [代码][代码]c: [代码][代码]'ApiIndex'[代码][代码],[代码][代码] [代码][代码]a: [代码][代码]'share_shop'[代码][代码],[代码][代码] [代码][代码]shop_id: shop_id,[代码][代码] [代码][代码]encryptedData: encryptedData,[代码][代码] [代码][代码]iv: iv,[代码][代码] [代码][代码]session_key: session_key,[代码][代码] [代码][代码]token: token[代码][代码] [代码][代码]};[代码][代码] [代码][代码]util.ajax(post_data, [代码][代码]function[代码] [代码](data) {[代码][代码] [代码][代码]wx.removeStorageSync([代码][代码]'shareTicket'[代码][代码]);[代码][代码] [代码][代码]console.log(data);[代码][代码] [代码][代码]}, [代码][代码]function[代码] [代码](data) {[代码][代码] [代码][代码]wx.login({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](lres) {[代码][代码] [代码][代码]if[代码] [代码](lres.code) {[代码][代码] [代码][代码]post_data = {[代码][代码] [代码][代码]m: [代码][代码]'mall'[代码][代码],[代码][代码] [代码][代码]c: [代码][代码]'ApiLogin'[代码][代码],[代码][代码] [代码][代码]a: [代码][代码]'get_session'[代码][代码],[代码][代码] [代码][代码]code: lres.code,[代码][代码] [代码][代码]};[代码][代码] [代码][代码]util.ajax(post_data, [代码][代码]function[代码] [代码](data) {[代码][代码] [代码][代码]wx.setStorageSync([代码][代码]'session_key'[代码][代码], data.data);[代码][代码] [代码][代码]post_data = {[代码][代码] [代码][代码]m: [代码][代码]'Share'[代码][代码],[代码][代码] [代码][代码]c: [代码][代码]'ApiIndex'[代码][代码],[代码][代码] [代码][代码]a: [代码][代码]'share_shop'[代码][代码],[代码][代码] [代码][代码]shop_id: shop_id,[代码][代码] [代码][代码]encryptedData: encryptedData,[代码][代码] [代码][代码]iv: iv,[代码][代码] [代码][代码]session_key: data.data,[代码][代码] [代码][代码]token: token[代码][代码] [代码][代码]};[代码][代码] [代码][代码]util.ajax(post_data, [代码][代码]function[代码] [代码](data) {[代码][代码] [代码][代码]console.log([代码][代码]'第二次成功'[代码][代码]);[代码][代码] [代码][代码]wx.removeStorageSync([代码][代码]'shareTicket'[代码][代码]);[代码][代码] [代码][代码]}, [代码][代码]function[代码] [代码](data) {[代码][代码] [代码][代码]console.log([代码][代码]'第二次失败'[代码][代码]);[代码][代码] [代码][代码]}, [代码][代码]true[代码][代码]);[代码][代码] [代码][代码]}, [代码][代码]null[代码][代码], [代码][代码]true[代码][代码]);[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]}, [代码][代码]true[代码][代码]);[代码][代码] [代码][代码]},[代码]
2018-07-12