银豹api增加分类
This commit is contained in:
@@ -18,6 +18,7 @@ func init() {
|
||||
sugarLogger = logger.Sugar()
|
||||
baseapi.Init(sugarLogger)
|
||||
api = New("682628966212343269", "18C0E0867E467DBC26EFF5E957B02EC4") //总店
|
||||
api.SetCookie(".POSPALAUTH30220", "0102B128D1E568D0D708FEB190954771D0D708000833003900330033003100380039003A0000012F00FF27DD332FACE5011FCB641B9C049B0882ED228F18")
|
||||
}
|
||||
|
||||
func TestAddProductInfo(t *testing.T) {
|
||||
@@ -42,14 +43,14 @@ func TestAddProductInfo(t *testing.T) {
|
||||
|
||||
func TestUpdateProductInfo(t *testing.T) {
|
||||
var (
|
||||
sellPrice = float64(50)
|
||||
sellPrice = float64(-1)
|
||||
)
|
||||
err := api.UpdateProductInfo(&ProductInfoParam{
|
||||
ProductInfo: &ProductInfo{
|
||||
UID: 285305464077105187,
|
||||
Stock: &sellPrice,
|
||||
err := api.UpdateProductInfo(
|
||||
&ProductInfo{
|
||||
UID: 285305464077105187,
|
||||
SellPrice: &sellPrice,
|
||||
},
|
||||
})
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user