1***@qq.com
1***@qq.com
  • 发布:2023-07-07 13:39
  • 更新:2023-07-11 15:32
  • 阅读:149

【报Bug】uni-admin APP升级发布版本直接下线

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 3.8.7

手机系统: Android

手机系统版本号: Android 14

手机厂商: 华为

手机机型: 所有安卓设备

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

export default function() {
// #ifdef APP-PLUS
return new Promise((resolve, reject) => {
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {

        // appid: plus.runtime.appid,  
        // appVersion: plus.runtime.version,  
        wgtVersion: widgetInfo.version  
        const data = {  
            action: 'checkVersion',  
            appid: '__UNI__36F7E6A',  
            appVersion: '1.0.0',  
            wgtVersion: widgetInfo.version  
        }   
        console.log("data: ",data);  
        uniCloud.callFunction({  
            name: 'uni-upgrade-center',  
            data,  
            success: (e) => {  
                console.log("e: ", e);  
                resolve(e)  
            },  
            fail: (error) => {  
                reject(error)  
            }  
        })  
    })  
})  
// #endif  
// #ifndef APP-PLUS  
return new Promise((resolve, reject) => {  
    reject({  
        message: '请在App中使用'  
    })  
})  
// #endif  

}

操作步骤:

修改好appid为项目绝对路径,版本号1.0.1打包在uni-admin发布,发布后状态为已经下线

预期结果:

最新版本号为在线状态

实际结果:

全部为下线

bug描述:

2023-07-07 13:39 负责人:DCloud_UNI_LXH 分享
已邀请:
DCloud_UNI_LXH

DCloud_UNI_LXH

在发布的时候你勾选上线的状态了吗?

要回复问题请先登录注册