- refactor.

This commit is contained in:
gazebo
2018-06-20 15:06:09 +08:00
parent 0eebe3a47d
commit 9ca830c240
4 changed files with 26 additions and 10 deletions

View File

@@ -78,6 +78,12 @@ func (o *OrderController) OrderStatusChanged(msg *elmapi.ELMCallbackMsg, orderId
if err != nil {
globals.SugarLogger.Warnf("internal error:%v", err)
return errResponseInternal
} else {
rec.Type = msg.Type
utils.CallFuncLogError(func() error {
_, err := db.Update(rec, "Type")
return err
}, globals.ErrStrAccessDB)
}
} else {
globals.SugarLogger.Infof("duplicate elm msg received:%v", msg)