1
This commit is contained in:
@@ -20,13 +20,13 @@ func init() {
|
|||||||
baseapi.Init(sugarLogger)
|
baseapi.Init(sugarLogger)
|
||||||
|
|
||||||
// 菜市
|
// 菜市
|
||||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||||
|
|
||||||
// 果园
|
// 果园
|
||||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
|
|
||||||
//商超
|
//商超
|
||||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
|
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
cookieStr := `
|
cookieStr := `
|
||||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
|
"math"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@@ -222,6 +223,22 @@ func TestErrList(t *testing.T) {
|
|||||||
fmt.Println(data)
|
fmt.Println(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestUpdateSkuBoxFee 修改打包费
|
||||||
|
func TestUpdateSkuBoxFee(t *testing.T) {
|
||||||
|
api.RetailBatchInitData(utils.GetUUID(), "2461720", []map[string]interface{}{
|
||||||
|
map[string]interface{}{
|
||||||
|
"app_spu_code": "22509",
|
||||||
|
"skus": []map[string]interface{}{
|
||||||
|
{
|
||||||
|
"sku_id": "22509",
|
||||||
|
"ladder_box_num": "0",
|
||||||
|
"ladder_box_price": "0",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
func TestRetailBatchInitData(t *testing.T) {
|
func TestRetailBatchInitData(t *testing.T) {
|
||||||
failedFoods, err := api.RetailBatchInitData(utils.GetUUID(), "19284062", []map[string]interface{}{
|
failedFoods, err := api.RetailBatchInitData(utils.GetUUID(), "19284062", []map[string]interface{}{
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
@@ -465,3 +482,7 @@ func TestSplit(t *testing.T) {
|
|||||||
fmt.Println("len-======", len(cc))
|
fmt.Println("len-======", len(cc))
|
||||||
globals.SugarLogger.Debugf("cc %s", utils.Format4Output(cc, false))
|
globals.SugarLogger.Debugf("cc %s", utils.Format4Output(cc, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Test22222(t *testing.T) {
|
||||||
|
fmt.Println(math.Ceil(float64(100) / float64(50)))
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user