sunshibo 2 недель назад
Родитель
Сommit
1a789d5484
1 измененных файлов с 2 добавлено и 12 удалено
  1. 2 12
      HBuilderProjects/shareIndex.html

+ 2 - 12
HBuilderProjects/shareIndex.html

@@ -1263,18 +1263,8 @@
 				credentials: 'omit',
 				headers: { Accept: 'application/json' }
 			}).then(function (res) {
-				return res.json().then(function (data) {
-					try {
-						alert(
-							'getWxConfig HTTP ' +
-								res.status +
-								'\n' +
-								JSON.stringify(data, null, 2)
-						);
-					} catch (alertErr) {}
-					if (!res.ok) throw new Error('HTTP ' + res.status);
-					return data;
-				});
+				if (!res.ok) throw new Error('HTTP ' + res.status);
+				return res.json();
 			});
 		}