This commit is contained in:
邹宗楠
2023-03-02 15:10:45 +08:00
parent 66019fac4b
commit 200c2aa7b0
2 changed files with 2 additions and 5 deletions

View File

@@ -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)
}

View File

@@ -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 != "" {