Prechádzať zdrojové kódy

路径改回来并打印trul

Ming 3 rokov pred
rodič
commit
d94e266e2a
3 zmenil súbory, kde vykonal 9 pridanie a 7 odobranie
  1. 5 3
      pages/index/index.vue
  2. 3 3
      util/api.js
  3. 1 1
      util/jssdk.js

+ 5 - 3
pages/index/index.vue

@@ -220,7 +220,7 @@
 					//使用code请求服务器接口,换取用户用户openID
 
 					uni.request({
-						url: 'https://wx.ewoogi.com:8081/USKYOF/USKYOF.php/Home/Com/getPageAuthorization', //仅为示例,并非真实接口地址。
+						url: 'http://wx.ewoogi.com:8081/USKYOF/USKYOF.php/Home/Com/getPageAuthorization', //仅为示例,并非真实接口地址。
 						// data: {
 						//     text: 'uni.request'
 						// },
@@ -232,7 +232,7 @@
 							// alert(res.data.flag)
 							if (res.data.flag == 3000) {
 								// alert("3000授权失败,请重新登录");
-								window.location.href = 'https://wx.ewoogi.com:8081/index.html#/';
+								window.location.href = 'http://wx.ewoogi.com:8081/index.html#/';
 							}
 
 							if (res.data.flag == 3003) {
@@ -355,7 +355,7 @@
 					if (res.data.flag == 3000) {
 
 						// alert("3000授权失败,");
-						window.location.href = 'https://wx.ewoogi.com:8081/index.html#/';
+						window.location.href = 'http://wx.ewoogi.com:8081/index.html#/';
 					}
 
 					if (res.data.flag == 3003) {
@@ -379,6 +379,8 @@
 				})
 
 				var turl = res1.data.turl;
+				
+				console.log(turl)
 				window.location.href =
 					'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4eab2e3b5531d58b&redirect_uri=' +
 					turl +

+ 3 - 3
util/api.js

@@ -1,5 +1,5 @@
 // const BASE_URL = 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/' //(测试域名)  
-const BASE_URL = 'https://wx.ewoogi.com:8081/USKYOF/USKYOF.php/Home/' //(测试域名新)  
+const BASE_URL = 'http://wx.ewoogi.com:8081/USKYOF/USKYOF.php/Home/' //(测试域名新)  
 // const BASE_URL='http://https://qhome.usky.cn/USKYOF/USKYOF.php/Home/'
 // 同时发送异步代码的次数,防止一次点击中有多次请求,用于处理
 let ajaxTimes = 0;
@@ -36,7 +36,7 @@ export const myRequest = (options) => {
 						if (notIndexFail2.includes(options.url) && ua.match(
 								/MicroMessenger/i) == "micromessenger") {
 							// alert('数据拉取失败,请重新进入公众号')
-							// window.location.href = 'https://wx.ewoogi.com:8081/index.html#/pages/index/index';
+							// window.location.href = 'http://wx.ewoogi.com:8081/index.html#/pages/index/index';
 						} else {
 
 							return uni.showToast({
@@ -60,7 +60,7 @@ export const myRequest = (options) => {
 				let notIndexFail = ['Index/getDataStatistics', 'Com/getAuthorizationUrl'];
 				if (notIndexFail.includes(options.url)) {
 					window.location.href =
-						'https://wx.ewoogi.com:8081/index.html#/pages/index/index';
+						'http://wx.ewoogi.com:8081/index.html#/pages/index/index';
 				} else {
 					uni.showModal({
 						showCancel: false,

+ 1 - 1
util/jssdk.js

@@ -10,7 +10,7 @@ export function configWeiXin(callback) {
 	console.log(BASE_URL.BASE_URL)
 	// start
 	uni.request({
-		url:"https://wx.ewoogi.com:8081/sign.php",	
+		url:"http://wx.ewoogi.com:8081/sign.php",	
 		// url:"http://s.yxin.tech/sign.php",