shish пре 4 година
родитељ
комит
bf152f3e92
2 измењених фајлова са 7 додато и 7 уклоњено
  1. 3 3
      ghsPad/src/mixins/autoUpdate.js
  2. 4 4
      hdPad/src/mixins/autoUpdate.js

+ 3 - 3
ghsPad/src/mixins/autoUpdate.js

@@ -1,5 +1,5 @@
 import { getApkVersion } from '@/api/auth'
-import { APIHOST } from '@/config'
+import { IMGHOST } from '@/config'
 export default {
 	data() {
 		return {
@@ -69,8 +69,8 @@ export default {
         },
         install(version){
             uni.showToast({ title: '后台下载中...', mask: false, duration: 1200,icon:"none"})
-            console.log(APIHOST+'/apk/pad'+version+'.apk')
-            var dtask = plus.downloader.createDownload( APIHOST+'/apk/pad'+version+'.apk', {}, function ( d, status ) {  
+            console.log(IMGHOST+'/apk/ghs/pad'+version+'.apk')
+            var dtask = plus.downloader.createDownload( IMGHOST+'/apk/ghs/pad'+version+'.apk', {}, function ( d, status ) {  
                 // 下载完成  
                 if ( status == 200 ) {   
                     plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename),{},{},function(error){  

+ 4 - 4
hdPad/src/mixins/autoUpdate.js

@@ -1,5 +1,5 @@
 import { getApkVersion } from '@/api/auth'
-import { APIHOST } from '@/config'
+import { IMGHOST } from '@/config'
 export default {
 	data() {
 		return {
@@ -69,10 +69,10 @@ export default {
         },
         install(version){
             uni.showToast({ title: '后台下载中...', mask: false, duration: 1200,icon:"none"})
-            console.log(APIHOST+'/apk/pad'+version+'.apk')
-            var dtask = plus.downloader.createDownload( APIHOST+'/apk/pad'+version+'.apk', {}, function ( d, status ) {  
+            console.log(IMGHOST+'/apk/hd/pad'+version+'.apk')
+            var dtask = plus.downloader.createDownload( IMGHOST+'/apk/hd/pad'+version+'.apk', {}, function ( d, status ) {  
                 // 下载完成  
-                if ( status == 200 ) {   
+                if ( status == 200 ) {
                     plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename),{},{},function(error){  
                         uni.showToast({ title: '安装失败', mask: false, duration: 1500,icon:"none" })
                     })