Commit 38343542 by 高宇强

gyq

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