智盟项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
937 B

  1. package svc
  2. import (
  3. zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
  4. "fmt"
  5. "github.com/syyongx/php2go"
  6. "strings"
  7. "time"
  8. )
  9. func DianzhongKuaishouMoney() {
  10. clientId := "10007095"
  11. token := "n7crx2j6kFBDEsko9m"
  12. endTime := time.Now().Unix()
  13. startTime := endTime - 3600
  14. timestamp := zhios_third_party_utils.Int64ToStr(time.Now().UnixNano() / 1e6)
  15. param := map[string]string{
  16. "clientId": clientId,
  17. "sdate": zhios_third_party_utils.Int64ToStr(startTime),
  18. "edate": zhios_third_party_utils.Int64ToStr(endTime),
  19. "timestamp": timestamp,
  20. "signKey": strings.ToLower(php2go.Md5(clientId + token + timestamp)), //签名秘钥(小写md5(clientId+接口token+timestamp)),
  21. }
  22. post, err := zhios_third_party_utils.CurlPost("https://routine.wqxsw.com/flames/channel/query/order", zhios_third_party_utils.SerializeStr(param), nil)
  23. fmt.Println(string(post))
  24. fmt.Println(err)
  25. }