Bläddra i källkod

feat:清理日志

wangshan 3 år sedan
förälder
incheckning
fc3b56ec54

+ 2 - 4
jyBXBase/rpc/internal/logic/listlogic.go

@@ -3,13 +3,11 @@ package logic
 import (
 	"app.yhyue.com/moapp/jybase/common"
 	"context"
+	"github.com/zeromicro/go-zero/core/logx"
 	"jyBXBase/rpc/bxbase"
 	IC "jyBXBase/rpc/init"
 	"jyBXBase/rpc/internal/svc"
 	"jyBXBase/rpc/util"
-	"log"
-
-	"github.com/zeromicro/go-zero/core/logx"
 )
 
 type ListLogic struct {
@@ -38,7 +36,7 @@ func (l *ListLogic) List(in *bxbase.ListReq) (*bxbase.ListRes, error) {
 		pagesize_max = int(in.Pagesize)
 	}
 	sql := util.CollListSql(in, isPay, in.UserId)
-	log.Println(sql)
+	logx.Info(sql)
 	data := IC.MainMysql.SelectBySql(sql)
 	count := 0
 	result := []map[string]interface{}{}

+ 0 - 3
jyBXBase/rpc/model/newestBidding.go

@@ -10,7 +10,6 @@ import (
 	"go.mongodb.org/mongo-driver/bson/primitive"
 	"jyBXBase/rpc/bxbase"
 	IC "jyBXBase/rpc/init"
-	"log"
 	"strings"
 	"time"
 )
@@ -99,7 +98,6 @@ func (n *NewestInfo) GetPushHistory() (res []*bxbase.NewestList) {
 			if ok && *list != nil {
 				for _, v := range *list {
 					_id := mongodb.BsonIdToSId(v["_id"])
-					log.Println(_id, "---2--:", v["publishtime"])
 					bn := infos[_id]
 					bn.Title = MC.ObjToString(v["title"])
 					bn.PublishTime = MC.Int64All(v["publishtime"])
@@ -125,7 +123,6 @@ func (n *NewestInfo) GetPushHistory() (res []*bxbase.NewestList) {
 			if ok && *list != nil {
 				for _, v := range *list {
 					_id := mongodb.BsonIdToSId(v["_id"])
-					log.Println(_id, "---3--:", v["publishtime"])
 					bn := infos[_id]
 					bn.Title = MC.ObjToString(v["title"])
 					bn.PublishTime = MC.Int64All(v["publishtime"])

+ 1 - 1
jyBXBuyer/rpc/internal/logic/buyerlistlogic.go

@@ -52,7 +52,7 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
 		}
 	} else {
 		query = model.BuyerListQuery(in)
-		//logx.Info("query:", query)
+		logx.Info("query:", query)
 		resp = model.GetBuyerList(query, in, false)
 	}
 	return &bxbuyer.BuyerListResp{

+ 1 - 1
jyBXCore/api/etc/bxcore-api.yaml

@@ -2,7 +2,7 @@ Name: bxcore-api
 Host: 0.0.0.0
 Port: 8004
 Verbose: true
-Timeout: 8000
+Timeout: 12000
 Webrpcport: 8014
 Gateway:
   ServerCode: jybxcore

+ 1 - 1
jyBXCore/rpc/etc/bxcore.yaml

@@ -4,7 +4,7 @@ Etcd:
   Hosts:
     - 127.0.0.1:2379
   Key: bxcore.rpc
-Timeout: 10000
+Timeout: 12000
 Webrpcport: 8013
 BidSearchOldUserLimit: 1627920001
 LabelUrl:

+ 1 - 4
jyBXSubscribe/rpc/internal/logic/getsublistlogic.go

@@ -3,11 +3,9 @@ package logic
 import (
 	"context"
 	IC "jyBXSubscribe/rpc/init"
-	"jyBXSubscribe/rpc/util"
-	"log"
-
 	"jyBXSubscribe/rpc/internal/svc"
 	"jyBXSubscribe/rpc/type/bxsubscribe"
+	"jyBXSubscribe/rpc/util"
 
 	"github.com/zeromicro/go-zero/core/logx"
 )
@@ -28,7 +26,6 @@ func NewGetSubListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetSub
 
 // 获取订阅推送列表
 func (l *GetSubListLogic) GetSubList(in *bxsubscribe.SubscribeInfosReq) (*bxsubscribe.SubscribeInfosResp, error) {
-	log.Println("in:", in)
 	//1、推送信息已读标识
 	//超级订阅 i_apppushunread=0
 	//大会员 i_member_apppushunread=0