https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html试试这个版本
开发工具已经是最新版本,为什么还提示当前开发工具版本较旧?[图片]
08-19请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
iOS端调用MediaAudioPlayer.addAudioSource无法播放声音iOS端通过VideoDecoder解码视频,调用MediaAudioPlayer.addAudioSource后,会阻塞不继续执行,导致无法播放声音。 音频编码使用的是AAC 切换到2.33.0基础库后,可正常运行并播放声音。
08-19现在还能复现吗
web-view组件调用bug?[图片]a上边是我报错的信息,经过测试苹果手机ios的就会提示这个错误,但是苹果手机的QQ打开小程序没有问题,不会提示这个错误,并且我用华为,红米,一加等安卓手机上的微信小程序都没有问题,小米手机的微信小程序和QQ打开小程序,也是以上的问题,我实在找不到原因了,请各位大佬帮忙看看,再此谢谢大家了!!!! 以下我的业务域名配置,下边是我的调用 [图片] <template> <view class="container"> <!-- 引导关注按钮 --> <button v-if="!hasAuthed" @click="startAuth" type="primary" class="auth-btn"> 授权获取服务号 </button> <!-- 授权后显示区域 --> <view v-if="hasAuthed" class="result-container"> <view class="result-item"> <text class="label">服务号OpenID:</text> <text class="value">{{ serviceOpenid }}</text> </view> <view v-if="!isSubscribed" class="subscribe-guide"> <text>您还未关注服务号,请点击下方按钮关注</text> <button @click="showOfficialAccount" type="warn">立即关注</button> </view> <view v-else class="subscribed-tip"> <text>您已关注服务号,可享受完整服务</text> </view> </view> <!-- 官方账号组件 --> <official-account v-if="showOfficialAccountFlag" /> </view> </template> <script setup> import { ref, onMounted } from 'vue' import { onLoad } from '@dcloudio/uni-app' import { UserSettingInfo, UpdatebyOpenid } from '@/api/common.js' // 状态定义 const hasAuthed = ref(false) const serviceOpenid = ref('') const isSubscribed = ref(false) const showOfficialAccountFlag = ref(false) // 服务号配置 const serviceConfig = { appId: 'wx5f93cf3beeef76d0', redirectUri: encodeURIComponent(wx.getSystemInfoSync().platform === 'ios'?'https://spapi.spsmsc.cn/wechat?platform=ios':'https://spapi.spsmsc.cn/wechat') } // 启动授权流程 const startAuth = () => { const authUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${serviceConfig.appId}&redirect_uri=${serviceConfig.redirectUri}&response_type=code&scope=snsapi_userinfo&state=mini_program#wechat_redirect` uni.navigateTo({ url: `/pages/web-view/index?url=${encodeURIComponent(authUrl)}` }) } // 显示官方账号组件 const showOfficialAccount = () => { showOfficialAccountFlag.value = true } // 检查本地存储 const checkLocalStorage = () => { uni.getStorage({ key: 'serviceOpenid', success: (res) => { if (res.data) { serviceOpenid.value = res.data hasAuthed.value = true checkSubscribeStatus(res.data) } } }) } // 检查关注状态 const checkSubscribeStatus = (openid) => { uni.request({ url: 'https://spapi.spsmsc.cn/api/WXService/check-subscribe', method: 'POST', data: { openid }, success: (res) => { isSubscribed.value = res.data.isSubscribed }, fail: (err) => { console.error('检查关注状态失败:', err) } }) } // 处理授权结果 const handleAuthResult = (result) => { if (result.action === "authSuccess") { UserSettingInfo().then(res => { console.log(res) if (res.data) { var data = { openid: result.openid, id: res.data.id } UpdatebyOpenid(data).then(res1 => { uni.showToast({ title: "授权成功", icon: 'success', duration: 2000, }) uni.navigateBack(); }) } }) // serviceOpenid.value = result.openid // hasAuthed.value = true // // 存储OpenID // uni.setStorage({ // key: 'serviceOpenid', // data: result.openid // }) // // 检查关注状态 // checkSubscribeStatus(result.openid) } } // 页面加载 onLoad(() => { checkLocalStorage() // 监听来自web-view的消息 uni.$on('childMessage', (data) => { handleAuthResult(data.data) }); // uni.onWindowMessage((res) => { // handleAuthResult(res.data) // }) }) </script> <style scoped> .container { padding: 20px; display: flex; flex-direction: column; align-items: center; } .auth-btn { margin-top: 40px; width: 80%; } .result-container { width: 100%; margin-top: 20px; } .result-item { margin-bottom: 15px; } .label { font-weight: bold; margin-right: 10px; } .subscribe-guide { margin-top: 20px; text-align: center; } .subscribed-tip { margin-top: 20px; color: #07c160; text-align: center; } </style>
08-19现在还能复现吗
小程序webView的url&paltform=1,实际拿到的会是paltform=1#???let url = `${CONFIG.homeUrl}?${query?`${query}&`:''}${EnvToken}=${token}&platform=2` 实际拿到的url最后会拼接 #webchat, 这样很容易导致最后一个参数拿到的值有错误,不符合http协议
08-19提供下appid 和具体的 url 链接
小程序也发布了,微信小程序内webview嵌套的谷歌购买的域名实际打不开?微信开发者工具能显示正常?[图片][图片]域名和地址:https://iot.hltechc.com/app/
08-19你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点
打开小程序一直卡在加载设备:华为P40 微信版本:8.0.62 appid:wx721eb33fab8201d4 部分用户卡在加载无法进入到小程序,清除缓存试过也没用 [图片]
08-19试试这个版本https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html
开发工具报错?[图片]
08-19请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
input框获取焦点后光标位置不对?[图片]这是什么问题 在android上这样显示,我应该怎么改
08-19[图片]你的链接404
小程序普通二维码链接无法正常访问小程序?小程序普通二维码链接无法正常跳转微信小程序
08-19企业微信的问题建议到企业微信开发者中心提问:https://developer.work.weixin.qq.com/community/question
绑定视频号和服务号?企业微信如果跟视频号和服务号绑定?人工客服电话是多少?我要人工咨询!!!!!
08-19