Commit 38343542 by 高宇强

gyq

parent f6421a19
......@@ -424,7 +424,7 @@ class LaoActionApi extends APIBase {
}
}
temp_info = await this.userlabourSve.finduserlabourByWhere(parm);
if (temp_info.status == 0) {
if (temp_info.status == 0 && temp_info.data.rows.length > 0) {
try {
for (var i = 0; i < temp_info.data.rows.length; i++) {
var cominfo = await this.usersSve.findUserInfoByid(temp_info.data.rows[i].user_id);
......@@ -464,12 +464,12 @@ class LaoActionApi extends APIBase {
return temp_info;
} catch (e) {
console.log(e);
//console.log(e);
return system.getResult(null, "获取数据失败");
}
} else {
console.log(e);
return system.getResult(null, "获取数据失败");
//console.log(e);
return system.getResult(null, "获取数据为空");
}
}
......
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