Procházet zdrojové kódy

add wx version and add config

leon před 1 rokem
rodič
revize
4de8180183
2 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 3 1
      config/index.ts
  2. 1 1
      src/services/http/api.js

+ 3 - 1
config/index.ts

@@ -1,12 +1,14 @@
 import path from 'path';
 
+import { WX_VERSION } from '../src/services/http/api';
+
 const CIPluginFn = {
   weapp: {
     appid: 'wxe1396d16d519e16b',
     privateKeyPath: 'ci/ca/private.wxe1396d16d519e16b.key',
     robot: 1,
   },
-  version: '1.4.0.1',
+  version: WX_VERSION,
   desc: '自动发布测试'
 };
 

+ 1 - 1
src/services/http/api.js

@@ -1,7 +1,7 @@
 let online = process.env.TARO_ENV == 'rn' ? false : false;
 export let baseUrl = online ? 'https://api.fast.liveplus.fun' : 'https://api.fast.dev.liveplus.fun';
 export let APP_VERSION = '1.0.0'
-export let WX_VERSION = ''
+export let WX_VERSION = '1.4.1'
 export let imgUrl = online
     ? 'https://api.fast.liveplus.fun/static/image/'
     : 'https://api.fast.dev.liveplus.fun/static/image/';