银豹创建商品修改

This commit is contained in:
苏尹岚
2020-07-01 11:57:29 +08:00
parent e00e55b0b9
commit 1957696d84
5 changed files with 31 additions and 16 deletions

View File

@@ -17,8 +17,8 @@ func init() {
logger, _ := zap.NewDevelopment()
sugarLogger = logger.Sugar()
baseapi.Init(sugarLogger)
api = New("682628966212343269", "18C0E0867E467DBC26EFF5E957B02EC4") //总店
api.SetCookie(".POSPALAUTH30220", "010285F62D8F18D6D708FE855EF2F020D6D708000833003900330033003100380039003A0000012F00FF2492A4FB8757535AA993086F60564361E0F54C49")
api = New("1131812849010800342", "1F42E107A9A6B6B91B064B0B9D1147A1") //总店
api.SetCookie(".POSPALAUTH30220", "0102A5F8291F691DD808FEA560EE80711DD808000833003900330036003000380037003A0000012F00FF7C8E026CA3DD2B6D2E5369FB1BBEEE8C3B9BE392")
}
func TestAddProductInfo(t *testing.T) {
@@ -58,7 +58,7 @@ func TestUpdateProductInfo(t *testing.T) {
}
func TestQueryProductByBarcode(t *testing.T) {
result, err := api.QueryProductByBarcode("22510")
result, err := api.QueryProductByBarcode("0012113")
if err != nil {
t.Fatal(err)
}
@@ -67,8 +67,7 @@ func TestQueryProductByBarcode(t *testing.T) {
func TestQueryProductByBarcodes(t *testing.T) {
result, err := api.QueryProductByBarcodes([]string{
"22510",
"2003181534102",
"0012113",
})
if err != nil {
t.Fatal(err)