|
|
@@ -135,10 +135,12 @@ public class teammsg extends Controller {
|
|
|
tenterprise_usersSet.save();
|
|
|
|
|
|
//修改账号姓名等缓存信息
|
|
|
- Row row = parameter.userIdList.get(tenterprise_userid);
|
|
|
- row.put("fname", fname);
|
|
|
- parameter.userIdList.put(userid, row);
|
|
|
- dbConnect.runSqlUpdate("update timdialogusers set fname='" + fname + "'where siteid='" + siteid + "' and tenterprise_userid='" + tenterprise_userid + "'");
|
|
|
+ if (parameter.userIdList.containsKey(tenterprise_userid)) {
|
|
|
+ Row row = parameter.userIdList.get(tenterprise_userid);
|
|
|
+ row.put("fname", fname);
|
|
|
+ parameter.userIdList.put(tenterprise_userid, row);
|
|
|
+ dbConnect.runSqlUpdate("update timdialogusers set fname='" + fname + "'where siteid='" + siteid + "' and tenterprise_userid='" + tenterprise_userid + "'");
|
|
|
+ }
|
|
|
if (toBeAdded) {
|
|
|
createSystemMessage("团队", "团队加入通知", "恭喜加入" + getAgent(tagentsid).getString("fbrand") + "团队", tenterprise_userid);
|
|
|
}
|