1
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user