protected override IWRespBase DoForRequest_Event_Location(WReqEventLocation request) { try { WX_UserLocation location = new WX_UserLocation(); location.OpenId = request.FromUserName; location.Latitude = request.Latitude; location.Longitude = request.Longitude; location.Precision = request.Precision; location.LastReportedTime = request.CreateTime; location.CompanyID = config.CompanyID; WXUserLocationServices.AddOrUpdate(location); return(null); } catch (Exception ex) { ExceptionsServices.AddExceptions(ex, string.Format("保存微信用户位置信息失败,OPENID:{0}", OpenId), LogFrom.WeiXin); TxtLogServices.WriteTxtLogEx("WeiXinConversation", ex); return(null); } }
/// <summary> /// 处理事件推送--上报地理位置 /// </summary> /// <param name="request"></param> /// <returns></returns> protected virtual IWRespBase DoForRequest_Event_Location(WReqEventLocation request) { return(null); }