合作联系微信: w6668263      合作联系电话:177-9238-7426     

h5+热更新下载wgt

html5+下载更新包

 

var dtask =plus.downloader.createDownload("http://192.168.4.41:8096/upgrade/__UNI__EEBDBA7.wgt", {},
                function(d, status){
                    var filePath = plus.io.convertLocalFileSystemURL(d.filename);
                    // uni.showModal({
                    //     content:  'status: '+status+'刮'+filePath,
                    //     showCancel: true
                    // })
                    plus.runtime.install(filePath,{},function(widgetInfo){
                        uni.showModal({
                            content:  '安装成功',
                            showCancel: true
                        })
                        plus.runtime.restart()
                    })
                    
                });
                dtask.start(); 

 

posted on 2023-07-12 17:53  草率的龙果果  阅读(91)  评论(0)    收藏  举报

导航