// 事件消息处理 public string SaleOrderSync(AccessTokenModel token, string body) { try { _log.Info("SaleOrderSync request:body={0}", body); _accessTokenFacade.ValidateCDKey(token); // _posFacade.SaleOrderSync(body); if (_saleQueue.Add(body)) //加入订单消费队列 { _log.Info("SaleOrderSync request:success"); return("1"); } else { _log.Info("SaleOrderSync request:failed"); return("0"); } } catch (Exception ex) { _log.Error(ex); return(ex.Message); } }