night-king / weixinSDK

微信SDK,一个轻量级的,极致简约的微信公众平台(服务号、订阅号)SDK.net版本,也支持dotnet core,作者QQ:2586662969,官方网站:
https://www.cnblogs.com/deepleo
417 stars 197 forks source link

例子里有个笔误,我说怎么总生成日志呢。 #8

Closed wzca closed 9 years ago

wzca commented 9 years ago

case "location"://上报地理位置事件

region 上报地理位置事件

                        var lat = message.Body.Latitude.Value.ToString();
                        var lng = message.Body.Longitude.Value.ToString();
                        var pcn = message.Body.Precision.Value.ToString();
                        //TODO:在此处将经纬度记录在数据库,这里用log4net记录日志
                        LogWriter.Default.WriteInfo(string.Format("openid:{0} ,location,lat:{1},lng:{21},pcn:{3}", openId, lat, lng, pcn));
                        #endregion

break;

lng:{21} ......2啊

night-king commented 9 years ago

fixed by https://github.com/night-king/weixinSDK/commit/2dd66ada7e63dc5227be623edb47aef65b67e901