From ca783746ab44f95cfad7c16fe8b83999ba13d253 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 4 Jul 2018 09:07:08 +0800 Subject: [PATCH] - remove redundant log. --- business/jd/controller/order.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/business/jd/controller/order.go b/business/jd/controller/order.go index e724c340c..dce9cfe8d 100644 --- a/business/jd/controller/order.go +++ b/business/jd/controller/order.go @@ -185,9 +185,7 @@ func newOrder(msg *jdapi.CallbackOrderMsg) error { _, err := db.Update(rec, "Data", "Code", "Msg", "Success", "CityName", "OrderStatus", "OrderStatusTime") return err }, globals2.ErrStrAccessDB) - err = utils.CallFuncLogError(func() error { - return globals2.FreshFoodAPI.NewJDOrder(rec, msg.StatusID == jdapi.OrderStatusNew) - }, globals2.ErrStrAccessDB) + globals2.FreshFoodAPI.NewJDOrder(rec, msg.StatusID == jdapi.OrderStatusNew) } else { globals.SugarLogger.Errorf("can not get jdorder info:%v", msg.BillID) }