api_tool.go 516 B

12345678910111213141516171819202122
  1. package services
  2. import (
  3. "fmt"
  4. "github.com/rdlucklib/rdluck_tools/http"
  5. )
  6. const (
  7. RefreshUrl = "http://127.0.0.1:7007/mysteel_chemical/refresh"
  8. )
  9. func MysteelChemicalRefresh(filePath string) {
  10. var refreshUrl string
  11. refreshUrl = RefreshUrl + "?FilePath=" + filePath
  12. fmt.Println("MysteelChemicalRefresh URL:"+RefreshUrl)
  13. body, err := http.Get(refreshUrl)
  14. if err != nil {
  15. fmt.Println("MysteelChemicalRefresh Err:" + err.Error())
  16. return
  17. }
  18. fmt.Println("MysteelChemicalRefresh Result:" + string(body))
  19. }