Browse Source

海外商品支付修改

kevin 1 year ago
parent
commit
a4d42b3428
1 changed files with 3 additions and 4 deletions
  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>