Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 处理事件推送--上报地理位置
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 protected virtual IWRespBase DoForRequest_Event_Location(WReqEventLocation request)
 {
     return(null);
 }