ソースを参照

Merge branch 'dev/v1.1.29_fuwencai' of BaseService/jyMicroservices into feature/v1.1.29

fuwencai 2 年 前
コミット
45a9fdcfc5
1 ファイル変更2 行追加2 行削除
  1. 2 2
      jyBXCore/rpc/entity/search.go

+ 2 - 2
jyBXCore/rpc/entity/search.go

@@ -210,8 +210,8 @@ func (kws *KeyWordsSearch) SearchParamsHandle(in *bxcore.SearchReq) []string {
 	if in.PageNum <= 0 {
 		in.PageNum = 1
 	}
-	count := MC.If(in.IsPay, IC.C.DefaultBidInfo.PayCount, IC.C.DefaultBidInfo.Count).(int64)
-	if in.PageNum > count/in.PageSize {
+	count := MC.If(in.IsPay, IC.C.DefaultBidInfo.PayCount, IC.C.DefaultBidInfo.Count).(int)
+	if in.PageNum > int64(count)/in.PageSize {
 		in.PageNum = -1
 		in.PageSize = -1
 	}