ソースを参照

修复检查更新模块功能

fanghuisheng 1 年間 前
コミット
8b1dfb4f12
3 ファイル変更3 行追加5 行削除
  1. 1 1
      src/config.js
  2. 1 2
      src/pages/business/zhaf/signIn/index.vue
  3. 1 2
      src/pages/mine.vue

+ 1 - 1
src/config.js

@@ -1,7 +1,7 @@
 // 应用全局配置
 export default {
   //#ifdef APP-PLUS || MP-WEIXIN
-  baseUrl: "https://gateway.usky.cn/prod-api",
+  baseUrl: "http://manager.usky.cn/prod-api",
   //#endif
 
   //#ifdef H5

+ 1 - 2
src/pages/business/zhaf/signIn/index.vue

@@ -80,7 +80,7 @@ function handleInsert() {
  */
 function getStatusApi() {
   getStatus().then((res) => {
-    if (res.status == "SUCCESS") {
+    if (res.status == "SUCCESS" && res.data != null) {
       state.signInType = res.data.operateType;
     }
   });
@@ -92,7 +92,6 @@ function getLocation() {
     geocode: true,
     highAccuracyExpireTime: 5000,
     success: function (res) {
-      console.log(res);
       state.longitude = res.longitude;
       state.latitude = res.latitude;
       state.address = res.address.city + res.address.district + res.address.street + res.address.streetNum + res.address.poiName;

+ 1 - 2
src/pages/mine.vue

@@ -202,9 +202,8 @@ function handleToUpgrade() {
 
   let data = {
     _api_key: "fba7440cd37400b6ff46e303896af4df",
-    appKey: "705a19c80c291a47067103824330eb66",
+    appKey: "cbd3508235d03365f4253f6aae6b68ab",
     buildVersion: config.appInfo.version,
-    // buildVersion: "2.1.0",
   };
   checkUpdates(data).then((res) => {
     if (res.code == 0) {