kevin 1 год назад
Родитель
Сommit
a4d42b3428
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      pay/wechat.html

+ 3 - 4
pay/wechat.html

@@ -21,17 +21,16 @@
 	// let mweb_url = getQueryString('mweb_url', window.location.search);
 
 	let url = window.location.search
-	let index = url.indexOf("mweb_url=")
-	let mweb_url = url.substring(index + 1)
+	let mweb_url = url.substring(10)
 
-	console.log('mweb_url', mweb_url)
+	console.log(mweb_url)
 
 	$(function() {
 		// test
 		// let redirect_url = 'https://nc-fele-mips.elken.com:8015/return.html';
 		// prod
 		let redirect_url = 'https://fele.ncshop.elken.com/return.html';
-		console.log('replace-o', mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
+		console.log(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
 		// window.location.replace(mweb_url + '&package=' + packages + '&redirect_url=' + encodeURIComponent(redirect_url))
 	});
 </script>