Commit 4c35ecc2 by 任晓松

update

parent c121b558
......@@ -29,7 +29,7 @@ class System {
return {
status: !data ? -1 : 0,
msg: opmsg,
data: data || null,
data: data || "",
bizmsg: req && req.session && req.session.bizmsg ? req.session.bizmsg : "empty"
};
}
......@@ -200,7 +200,7 @@ class System {
* @param {*} errmsg 操作失败的描述,默认为fail
* @param {*} data 操作失败返回的数据
*/
static getResultFail(status = -1, errmsg = "fail", data = null) {
static getResultFail(status = -1, errmsg = "fail", data = "") {
return {
status: status,
msg: errmsg,
......
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