Commit 187d8fa1 authored by wjf's avatar wjf

l

parent b65ff0d2
......@@ -122,7 +122,8 @@ export function sendTbNet(netName: TbNetName, parameter: any, callback: Function
//记录数据
data[netName] = returnData;
if (returnData) {
if (!hideMsg && !returnData.success) showToast(codeMsg[returnData.code] || "网络异常")
// if (!hideMsg && !returnData.success) showToast(codeMsg[returnData.code] || "网络异常")
if (!hideMsg && !returnData.success) showToast(returnData.message || "网络异常")
callback(returnData.success, returnData);
} else {
if (!hideMsg) showToast("网络异常")
......@@ -141,7 +142,8 @@ export function sendTbNet(netName: TbNetName, parameter: any, callback: Function
let timeId: any;
//事件回调
let fun = function (d) {
if (!hideMsg && !d.success) showToast(codeMsg[d.code] || "网络异常")
// if (!hideMsg && !d.success) showToast(codeMsg[d.code] || "网络异常")
if (!hideMsg && !d.success) showToast(d.message || "网络异常")
GDispatcher.removeEvent(netName, fun);
callback(d.success, d);
clearTimeout(timeId);
......
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