This commit is contained in:
邹宗楠
2023-07-28 20:09:57 +08:00
parent 86d1bc5bee
commit 78887ca68a
5 changed files with 34 additions and 18 deletions

View File

@@ -1,7 +1,6 @@
package tiktok_api
import (
"crypto/md5"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
@@ -40,15 +39,3 @@ func TestGetSkuDetailLocalID(t *testing.T) {
globals.SugarLogger.Debugf("data=%s", utils.Format4Output(data, false))
globals.SugarLogger.Debugf("data=%s", err)
}
//
func TestName(t *testing.T) {
body := `[{
"tag": "101",
"msg_id": "69793528590852580050:0:101:1670233754:1024588978:7136048270014416392",
"data": "{\"biz\":2,\"order_status\":2,\"order_type\":0,\"p_id\":5008525809582539796,\"pay_amount\":2640,\"pay_time\":1670233752,\"pay_type\":1,\"s_ids\":[5008525809582539796],\"shop_id\":57939570}"
}]`
signParam := a.appKey + body + a.appSecret
sign := fmt.Sprintf("%X", md5.Sum([]byte(signParam)))
fmt.Println(sign)
}