zs 2 年之前
父节点
当前提交
bb3b54096f
共有 3 个文件被更改,包括 9 次插入9 次删除
  1. 5 5
      common/api.js
  2. 3 3
      config.js
  3. 1 1
      manifest.json

+ 5 - 5
common/api.js

@@ -51,11 +51,11 @@ export const requestBase = async (uri, method = 'GET', data, type) => {
   let header = {};
   let views = JSON.stringify({ uri, method, data });
   views = encodeURIComponent(views)
-  // if (method !== 'GET') {
-  //   let rk = await getRequestKey(views);
-  //   header.rk = rk;
-  //   header.views = views;
-  // }
+  if (method !== 'GET') {
+    let rk = await getRequestKey(views);
+    header.rk = rk;
+    header.views = views;
+  }
   if (token) header.token = token;
   return new Promise((resolve, reject) => {
     uni.request({

+ 3 - 3
config.js

@@ -2,18 +2,18 @@
 const wx_min = uni.getAccountInfoSync();
 // 设备信息
 const system = uni.getSystemInfoSync();
-let wx_projectkey = 'tehqApp'; //tehqApp   pointApp
+let wx_projectkey = 'pointApp'; //tehqApp   pointApp
 
 if (system.uniPlatform == 'mp-weixin') {
 	let envV = wx_min.miniProgram.envVersion;
-	// if (envV == 'develop' || envV == 'trial') wx_projectkey = 'pointApp';
+	if (envV == 'develop' || envV == 'trial') wx_projectkey = 'pointApp';
 }
 export default {
 	serverUrl: 'https://broadcast.waityou24.cn',
 	// serverUrl: 'http://192.168.223.1:12211',
 	wx_projectkey: wx_projectkey,
 	wx_miniProgram: wx_min.miniProgram,
-	wx_dev: '', // /dev
+	wx_dev: '/dev', // /dev
 	system: system,
 	share: {},
 	my_menu: [ //

+ 1 - 1
manifest.json

@@ -128,7 +128,7 @@
 	"quickapp": {},
 	/* 小程序特有相关 */
 	"mp-weixin": {
-		"appid": "wx928648edf0df1882",
+		"appid": "wx8cdd28824dfcdf19",
 		"setting": {
 			"urlCheck": true,
 			"postcss": true,