Commit 95ec55a0 by 侯体倬

边界判断

parent 2ee76a27
......@@ -32,7 +32,7 @@ export async function requestGET(url, options) {
resolve(res)
},
fail: function (res) {
if (res.data.message && res.data.message == "API rate limit exceeded") {
if (res.data && res.data.message && res.data.message == "API rate limit exceeded") {
wx.showToast({
title: '您好,当前访问人数过多,请稍后再试试',
icon: 'none',
......@@ -57,7 +57,7 @@ export async function requestPOST(url, options) {
resolve(res)
},
fail: function (res) {
if (res.data.message && res.data.message == "API rate limit exceeded") {
if (res.data && res.data.message && res.data.message == "API rate limit exceeded") {
wx.showToast({
title: '您好,当前访问人数过多,请稍后再试试',
icon: 'none',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment