update: law_plat

main
Leo 10 months ago
parent 6e4ddf0094
commit f5a5e2ba8b

@ -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",

Loading…
Cancel
Save