|
- package svc
-
- import (
- zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
- "fmt"
- "github.com/syyongx/php2go"
- "strings"
- "time"
- )
-
- func DianzhongKuaishouMoney() {
- clientId := "10007095"
- token := "n7crx2j6kFBDEsko9m"
- endTime := time.Now().Unix()
- startTime := endTime - 3600
- timestamp := zhios_third_party_utils.Int64ToStr(time.Now().UnixNano() / 1e6)
- param := map[string]string{
- "clientId": clientId,
- "sdate": zhios_third_party_utils.Int64ToStr(startTime),
- "edate": zhios_third_party_utils.Int64ToStr(endTime),
- "timestamp": timestamp,
- "signKey": strings.ToLower(php2go.Md5(clientId + token + timestamp)), //签名秘钥(小写md5(clientId+接口token+timestamp)),
- }
- post, err := zhios_third_party_utils.CurlPost("https://routine.wqxsw.com/flames/channel/query/order", zhios_third_party_utils.SerializeStr(param), nil)
- fmt.Println(string(post))
- fmt.Println(err)
- }
|