private void Receive(string identify, ReceiveDataModel model) { //解析model var sendModel = _redis.GetSmsSendModel(model); if (sendModel == null) { return; } //调用服务发送短信 if (!sendModel.IsSend) { return; } //短信成功后更新oracle表 if (_send.SendMsg(sendModel) == "000000") { //更新数据库表 var configModel = _resp.FirstOrDefault(a => a.Monitor.BMID == sendModel.StationKey); if (configModel != null) { configModel.LASTTIME = sendModel.SaveTime; configModel.LASTVALUE = sendModel.Value; _resp.Update(configModel); } //更新redis缓存 } ; }