diff --git a/cmd/law_plat.go b/cmd/law_plat.go index 735f2cc..3432991 100644 --- a/cmd/law_plat.go +++ b/cmd/law_plat.go @@ -26,7 +26,7 @@ var lawCmd = &cobra.Command{ Short: "Batch processing operations of the law platform", Run: func(cmd *cobra.Command, args []string) { initkit.BindFlags(cmd) - handle() + handleLaw() }, } @@ -36,7 +36,7 @@ func defFlagsLaw(cmd *cobra.Command) { var lawClient = resty.New().SetRetryCount(5).SetRetryWaitTime(10 * time.Second) -func handle() { +func handleLaw() { resp, err := lawClient.R(). SetHeaders(map[string]string{ "Content-type": "application/x-www-form-urlencoded; charset=UTF-8",