zhangchuanxing 3 сар өмнө
parent
commit
05e7f92ebc
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      models/user.go

+ 2 - 2
models/user.go

@@ -124,7 +124,7 @@ func GetCompanyPermissionId(companyId int) (permissionId string, err error) {
 
 func UserSubscribe(subscribeType, userId int) (err error) {
 	o := orm.NewOrmUsingDB("weekly_report")
-	sql := `UPDATE wx_user SET cygx_subscribe=?,cygx_subscribe_time=NOW() WHERE user_id = ? `
+	sql := `UPDATE wx_user SET mfyx_subscribe=?,mfyx_subscribe_time=NOW() WHERE user_id = ? `
 	_, err = o.Raw(sql, subscribeType, userId).Exec()
 	return
 }
@@ -142,4 +142,4 @@ func GetUserDetailByUserId(userId int) (item *UserDetail, err error) {
 	FROM wx_user WHERE user_id = ? `
 	err = o.Raw(sql, userId).QueryRow(&item)
 	return
-}
+}