Browse Source

fix:修复移动联系人时日志的记录

Roc 8 months ago
parent
commit
c2f936864b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      controllers/company_user.go

+ 7 - 0
controllers/company_user.go

@@ -2805,6 +2805,13 @@ func (this *CompanyController) UserMove() {
 	//联系人信息
 	originalUserInfo, _ := json.Marshal(oldWxUser)
 	userInfo, _ := json.Marshal(wxUser)
+	{
+		// 最新的联系人信息
+		newWxUser, err := models.GetWxUserByUserId(req.UserId)
+		if err == nil {
+			userInfo, _ = json.Marshal(newWxUser)
+		}
+	}
 	go services.AddWxUserOpLog(company.WxUserOpLog{
 		LogType:                "move",
 		UserId:                 int(wxUser.UserId),