调整LocationEventMessage类中的经纬度字段类型为double

This commit is contained in:
jinyu 2015-08-06 10:24:50 +08:00
parent f6961e1c8e
commit 795620cf93
3 changed files with 15 additions and 7 deletions

View File

@ -72,4 +72,8 @@
+ 新增base64解编码类(来自apache)
+ 删除`BlankMessageHandler`类,新增`SingleContentResponse`
+ 删除`BlankMessageHandler`类,新增`SingleContentResponse`
* 2015-08-06
+ 调整`LocationEventMessage`类中的经纬度字段类型为double

View File

@ -140,6 +140,10 @@ public class WeixinMessageDispatcher {
try {
response = handlerExecutor.getMessageHandler().doHandle(request,
message, cruxMessage.getNodeNames());
// fixed..
if (response == null) {
response = BlankResponse.global;
}
handlerExecutor.applyPostHandle(request, response, message);
context.write(response);
} catch (Exception e) {

View File

@ -27,27 +27,27 @@ public class LocationEventMessage extends EventMessage {
* 地理位置纬度
*/
@XmlElement(name="Latitude")
private String latitude;
private double latitude;
/**
* 地理位置经度
*/
@XmlElement(name="Longitude")
private String longitude;
private double longitude;
/**
* 地理位置精度
*/
@XmlElement(name="Precision")
private String precision;
private double precision;
public String getLatitude() {
public double getLatitude() {
return latitude;
}
public String getLongitude() {
public double getLongitude() {
return longitude;
}
public String getPrecision() {
public double getPrecision() {
return precision;
}