Commit 52771921 authored by hbcui1984's avatar hbcui1984

更新manifest.json中分享插件配置

parent 05837808
......@@ -539,14 +539,18 @@
if (i > 0) {
var s_id = ids[i - 1].id;
var share = shares[s_id];
if (share.authenticated) {
shareMessage(share, ids[i - 1].ex);
} else {
share.authorize(function() {
if(share){
if (share.authenticated) {
shareMessage(share, ids[i - 1].ex);
}, function(e) {
console.log("认证授权失败:" + e.code + " - " + e.message);
});
} else {
share.authorize(function() {
shareMessage(share, ids[i - 1].ex);
}, function(e) {
console.log("认证授权失败:" + e.code + " - " + e.message);
});
}
}else{
mui.toast("无法获取分享服务,请检查manifest.json中分享插件参数配置,并重新打包")
}
}
});
......
......@@ -48,9 +48,6 @@
"XMLHttpRequest": {
"description": "跨域网络访问"
},
"Share": {
"description": "管理社交分享插件"
},
"Speech": {
"description": "管理语音识别插件"
},
......@@ -64,7 +61,7 @@
"autoclose": false,/*如果为true,程序启动的图片可以自动关闭,如果为false,开发者需要手动关闭*/
"waiting": true/*是否在程序启动界面显示等待雪花,true表示显示,false表示不显示。*/
},
"runmode": "liberate",/*两个值,liberate或normal,前者在应用安装时释放资源,后者不需要释放资源*/
"runmode": "normal",/*两个值,liberate或normal,前者在应用安装时释放资源,后者不需要释放资源*/
"signature": "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",/*可选,保留给应用签名,暂不使用*/
"distribute": {
"debug": "",/*可选,是否为debug模式,可取值:true表示debug模式运行,false表示release模式运行,默认值为false*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment