sunshibo 1 هفته پیش
والد
کامیت
24f59474ba
1فایلهای تغییر یافته به همراه20 افزوده شده و 2 حذف شده
  1. 20 2
      HBuilderProjects/shareIndex.html

+ 20 - 2
HBuilderProjects/shareIndex.html

@@ -1381,7 +1381,6 @@
 						});
 				})
 				.then(function (res) {
-					alert("123456",res,signPageUrl);
 					if (res && res.code != null) {
 						var c = Number(res.code);
 						if (c !== 200 && c !== 0 && res.success !== true) {
@@ -1410,8 +1409,27 @@
 					: signPageUrl;
 			syncBrowserUrlForWxSign(urlForWx);
 			return new Promise(function (resolve) {
+				try {
+					alert(
+						'wx.config 参数\n' +
+							JSON.stringify(
+								{
+									debug: false,
+									appId: sign.appId,
+									timestamp: sign.timestamp,
+									nonceStr: sign.nonceStr,
+									signature: sign.signature,
+									jsApiList: [],
+									openTagList: ['wx-open-launch-app'],
+									signUrl: urlForWx
+								},
+								null,
+								2
+							)
+					);
+				} catch (alertErr) {}
 				wx.config({
-					debug: isWxDebugOn(),
+					debug:false,
 					appId: sign.appId,
 					timestamp: sign.timestamp,
 					nonceStr: sign.nonceStr,