1
This commit is contained in:
@@ -33,7 +33,7 @@ func TestAddPrinter(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestDelPrinter(t *testing.T) {
|
||||
err := api.DelPrinter([]string{"20210615000012"})
|
||||
err := api.DelPrinter([]string{"20210615000012"}, "")
|
||||
if err != nil {
|
||||
t.Fatalf("PrintMsg return error:%v", err)
|
||||
}
|
||||
@@ -67,7 +67,7 @@ func TestGetPrintMsg(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetPrinterStatus(t *testing.T) {
|
||||
result, err := api.GetPrinterStatus("20210615000010")
|
||||
result, err := api.GetPrinterStatus("120220915001012")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -345,9 +345,6 @@ func (a *API) RetailSellStatus(trackInfo, poiCode string, foodData []*BareStoreF
|
||||
"food_data": string(utils.MustMarshal(foodData)),
|
||||
"sell_status": sellStatus,
|
||||
}, resultKeyMsg, trackInfo)
|
||||
globals.SugarLogger.Debugf("美团不可售参数 params :%s,poiCode:%s,sellStatus:%d", utils.Format4Output(foodData, false), poiCode, sellStatus)
|
||||
globals.SugarLogger.Debugf("====result:%s", utils.Format4Output(result, false))
|
||||
globals.SugarLogger.Debugf("====reerrr:%v", err)
|
||||
if err == nil {
|
||||
var tmpFailedFoodList []*AppFoodResult4SellStatus
|
||||
if msg, ok := result.(string); ok && msg != "" {
|
||||
|
||||
Reference in New Issue
Block a user