Просмотр исходного кода

海外商品-微信支付修改

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

+ 5 - 2
pay/wechat.html

@@ -18,7 +18,10 @@
 	    return null;
 	}
 
-	let mweb_url = getQueryString('mweb_url', window.location.search);
+	// let mweb_url = getQueryString('mweb_url', window.location.search);
+
+	const params = new URLSearchParams(window.location.search);
+	const mweb_url = params.get('mweb_url');
 	console.log('mweb_url', mweb_url)
 	$(function() {
 		// test
@@ -26,7 +29,7 @@
 		// prod
 		let redirect_url = 'https://fele.ncshop.elken.com/return.html';
 		console.log('replace-o', mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
-		window.location.replace(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
+		// window.location.replace(mweb_url + '&redirect_url=' + encodeURIComponent(redirect_url))
 	});
 </script>
 <style>