rdluck 4 년 전
부모
커밋
edeb6488c7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/wx_user.go

+ 1 - 1
models/wx_user.go

@@ -158,7 +158,7 @@ func Apply(userId, applyMethod int, mobile, email, companyName, realName, openId
 	o := orm.NewOrm()
 	if realName == "" {
 		msql := " UPDATE wx_user SET apply_method = ?,note=? WHERE open_id = ? "
-		_, err = o.Raw(msql, applyMethod, openId).Exec()
+		_, err = o.Raw(msql, applyMethod,companyName, openId).Exec()
 	} else {
 		msql := " UPDATE wx_user SET apply_method = ?,real_name=?,note=? WHERE open_id = ? "
 		_, err = o.Raw(msql, applyMethod, realName, companyName, openId).Exec()