@@ -146,7 +146,7 @@ func getRandom(userId string, t int64) int32 {
//checkUserIsSubscribe 检查用户是否关注
func checkUserIsSubscribe(openid string) bool {
- if openid == "" {
+ if openid != "" {
user, ok := db.Mgo.FindOneByField("user", map[string]interface{}{
"i_appid": 2,
"s_m_openid": openid,