diff --git a/cmd/dis_plat.go b/cmd/dis_plat.go index 66e336c..39a5207 100644 --- a/cmd/dis_plat.go +++ b/cmd/dis_plat.go @@ -90,7 +90,7 @@ func handleDis() { }).SetQueryParams(map[string]string{ "page": "1", "catid": id, - "limit": "15", + "limit": "5", "_": cast.ToString(time.Now().UnixNano() / int64(time.Millisecond)), }).Get("http://aiportal.unicom.local/wsq/site/newsOne/v1/index/newList") if err != nil || resp.IsError() || gjson.Get(resp.String(), "code").Int() != 200 { @@ -105,7 +105,6 @@ func handleDis() { } for i, v := range artID { _ = commonkit.RecoverFuncWrapper(func() { - time.Sleep(1 * time.Second) resp, err = disClient.R(). SetHeaders(map[string]string{ "Content-type": "application/json;charset=UTF-8", @@ -158,6 +157,7 @@ func handleDis() { panic(exception.New("收藏失败 " + artName[i] + cast.ToString(resp.String()))) } logkit.Info("点赞收藏成功 " + artName[i]) + time.Sleep(1 * time.Second) }) } }