This commit is contained in:
邹宗楠
2023-04-03 09:22:55 +08:00
parent 4337ab3585
commit 18572ce050
8 changed files with 60 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ package kuaishou_mini
import (
"encoding/base64"
"fmt"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
@@ -79,14 +80,26 @@ func TestPreCreateOrder(t *testing.T) {
TypeDetail: 1832, // 素菜
ExpireTime: 10 * 60,
Sign: "",
Attach: "",
Attach: "1111",
NotifyUrl: "https://callback.jxc4.com/tictoc/tiktokMsg",
GoodsId: "",
GoodsDetailUrl: "",
MultiCopiesGoodsInfo: "",
GoodsId: "1122",
GoodsDetailUrl: "/page/index/anima",
MultiCopiesGoodsInfo: "[{\"copies\":2}]",
CancelOrder: 0,
}
data, err := api.PreCreateOrder(param)
globals.SugarLogger.Debugf("data := %s", utils.Format4Output(data, false))
globals.SugarLogger.Debugf("err := %s", utils.Format4Output(err, false))
}
func TestAaww(t *testing.T) {
aa := make(map[string]interface{}, 1)
aa["a"] = ""
if value, ok := aa["a"].(int64); ok {
fmt.Println(value)
}
if value, ok := aa["a"].(string); ok {
fmt.Println(utils.Str2Int64(value))
}
}