shish il y a 4 ans
Parent
commit
c141053b36

+ 2 - 7
ghsApp/src/mixins/autoUpdate.js

@@ -9,13 +9,10 @@ export default {
     onLoad(){
         // #ifdef APP-PLUS
         plus.runtime.getProperty(plus.runtime.appid,(wgtinfo)=>{
-            console.log(JSON.stringify(wgtinfo));
-            console.log(wgtinfo.version);
             this.version = wgtinfo.version
         });
-        uni.getSystemInfo({  
-            success:(res) => {  
-                console.log(res.platform);  
+        uni.getSystemInfo({
+            success:(res) => {
                 //检测当前平台,如果是安卓则启动安卓更新  
                 if(res.platform=="android"){  
                     this.androidCheckUpdate()   
@@ -34,7 +31,6 @@ export default {
                     if(version <= this.version){
                         return false
                     }
-
                     if(plus.networkinfo.getCurrentType()!=3){
                         let that = this
                         that.$util.confirmModal({content:'新版本更新',cancelText:'稍后',okText:'使用流量更新'},() => {
@@ -50,7 +46,6 @@ export default {
             })            
         },
         install(version){
-            console.log(APIHOST+'/apk/'+version+'.apk')
             uni.showToast({ title: '后台下载中...', mask: false, duration: 1200,icon:"none"})
             var dtask = plus.downloader.createDownload( APIHOST+'/apk/'+version+'.apk', {}, function ( d, status ) {  
                 // 下载完成  

+ 1 - 1
hdApp/uniCloud-aliyun/cloudfunctions/getMobileNumber/index.js

@@ -19,7 +19,7 @@ exports.main = async (event, context) => {
 		}
 
 		const res = await uniCloud.getPhoneNumber({
-			appid: '__UNI__BD781B0', // 替换成自己开通一键登录的应用的DCloud appid,使用callFunction方式调用时可以不传(会自动取当前客户端的appid),如果使用云函数URL化的方式访问必须传此参数
+			appid: '__UNI__4079DC1', // 替换成自己开通一键登录的应用的DCloud appid,使用callFunction方式调用时可以不传(会自动取当前客户端的appid),如果使用云函数URL化的方式访问必须传此参数
 			provider: 'univerify',
 			apiKey: '28218195fca6f5993e5fe4ac357a281b', // 在开发者中心开通服务并获取apiKey
 			apiSecret: 'ee1268e59735aa5fdae6f0df0e9c094a', // 在开发者中心开通服务并获取apiSecret