wcj 5 年 前
コミット
feb9ae5e0f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/jfw/modules/subscribepay/src/service/index_p1.go

+ 1 - 1
src/jfw/modules/subscribepay/src/service/index_p1.go

@@ -297,7 +297,7 @@ func getPushHistory(userId string) (result []*jy.SubPushList) {
 		return
 	}
 	subPush, err := jy.SubscribePush.GetSevenDayCache(userId)
-	if err != nil && subPush != nil {
+	if err == nil && subPush != nil {
 		result = subPush
 	} else {
 		findSQL := "select * from pushsubscribe where userid = '" + userId + "'  and date >= %d order by id desc limit 50"