wangchuanjin 1 жил өмнө
parent
commit
61026b9072

+ 1 - 0
api/internal/service/network.go

@@ -484,6 +484,7 @@ func (n *network) List(in *types.NetWorkListReq) *types.Reply {
 	if in.Current_page <= 0 {
 		in.Current_page = 1
 	}
+	logx.Info(fmt.Sprintf("%+v", in))
 	args := []interface{}{in.PositionId, in.PositionId, in.PositionId}
 	sqlAppend1 := ""
 	if in.Type != "" {

+ 1 - 1
api/internal/service/network_test.go

@@ -107,7 +107,7 @@ func TestNetWorkList(t *testing.T) {
 	res := Network.List(&types.NetWorkListReq{
 		PositionId:   1205591997,
 		Current_page: 1,
-		Page_size:    100,
+		Page_size:    10,
 		//PositionId: 935,
 		//PositionId: 1205591998,
 		Order_amount: -1,