yinbaoshangpinupdate

This commit is contained in:
苏尹岚
2020-03-27 17:10:50 +08:00
parent d372e3457c
commit cea0ff95cf
3 changed files with 197 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ func init() {
sugarLogger = logger.Sugar()
baseapi.Init(sugarLogger)
api = New("682628966212343269", "18C0E0867E467DBC26EFF5E957B02EC4") //总店
api.SetCookie(".POSPALAUTH30220", "0102B128D1E568D0D708FEB190954771D0D708000833003900330033003100380039003A0000012F00FF27DD332FACE5011FCB641B9C049B0882ED228F18")
api.SetCookie(".POSPALAUTH30220", "010214EB504F27D2D708FE145315B12FD2D708000833003900330033003100380039003A0000012F00FFAFFECF157DB55356D2DA4F6E2B3CDB5BCD9B47C2")
}
func TestAddProductInfo(t *testing.T) {
@@ -28,11 +28,12 @@ func TestAddProductInfo(t *testing.T) {
result, err := api.AddProductInfo(&ProductInfoParam{
ProductInfo: &ProductInfo{
Name: "测试商品",
Barcode: "12132",
Barcode: "12131",
BuyPrice: &stock,
SellPrice: &stock,
Stock: &stock,
SupplierUID: 123,
CategoryUID: 1585290800642661192,
},
})
if err != nil {