Commit 3630c543 by 王昆

gbs

parent 1ec70812
...@@ -1040,6 +1040,26 @@ class LaoActionApi extends APIBase { ...@@ -1040,6 +1040,26 @@ class LaoActionApi extends APIBase {
} }
async updateUserInfo2(obj) { //根据id更新用户信息
if (!obj.id) {
return system.getResult(null, "参数错误");
}
try {
var result = await this.usersSve.updateUserInfo(obj);
if (result == 1) {
var user_info = await this.usersSve.findUserInfoByid(obj.id);
return system.getResult(user_info);
} else {
return system.getResult(null, "更新失败");
}
} catch(e) {
console.log(e);
return system.getResult(null, "更新失败!");
}
}
async UpdateLabourStatus(obj) { //更新劳工信息审核状态 async UpdateLabourStatus(obj) { //更新劳工信息审核状态
if (!obj.id || !obj.cur_status) { if (!obj.id || !obj.cur_status) {
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