|
@@ -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
|
|
|
-}
|
|
|
+}
|