Browse Source

Merge branch 'fix/move_user_log' into debug

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

+ 7 - 0
controllers/company_user.go

@@ -2811,6 +2811,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),