Browse Source

交易关闭时限制提币不显示报错

master
liaoxinyu 1 year ago
parent
commit
f68d8068a8
  1. 11
      api/serve/index.js

11
api/serve/index.js

@ -196,13 +196,20 @@ x.fn = x.prototype = {
reject(message);
break;
}
if (config.toast !== false&&message&& code!=666) {
if (config.toast !== false&&message&& this.url!=='https://sbga.sbdccoin.com/api/app/user/withdraw') {
uni.showToast({
title: message,
duration: 2000,
icon: 'none'
});
}
}else if(config.toast !== false&&message&&code!==666 && this.url=='https://sbga.sbdccoin.com/api/app/user/withdraw'){
uni.showToast({
title: message,
duration: 2000,
icon: 'none'
});
}
} else {
Cache.set(newMsg,res.data);
resolve(Cache.get(newMsg).data); // 直接返回数据

Loading…
Cancel
Save