Browse Source

fix:日志

zqbao 8 months ago
parent
commit
0c9ca20917
1 changed files with 5 additions and 1 deletions
  1. 5 1
      controllers/wechat.go

+ 5 - 1
controllers/wechat.go

@@ -155,7 +155,11 @@ func subscribe(openId string) {
 					return
 				}
 				userRecord.UserId = user.UserId
-				userRecord.Update([]string{"user_id"})
+				err = userRecord.Update([]string{"user_id"})
+				if err != nil {
+					utils.FileLog.Info("关注后,修改公众号绑定用户异常,err:" + err.Error())
+					return
+				}
 			}
 		}
 		return