Commit bbd98c86 authored by nie'hong's avatar nie'hong

h5导览保存用户ipi地址

parent fe4bd8c0
......@@ -45,6 +45,10 @@ public class TVideoVisitor implements Serializable {
@TableField("area_code")
private String areaCode;
@ApiModelProperty(value = "userIp", name = "用户ip")
@TableField("user_ip")
private String userIp;
@ApiModelProperty(value = "createTime", name = "创建时间")
@TableField("create_time")
private Date createTime;
......
......@@ -84,6 +84,7 @@ public class StatisticController extends BaseController {
resultMap.put("resultCoed", "400");
resultMap.put("message", "获取数据异常");
}
tVideoVisitor.setUserIp(ipAddress);
Map<String, String> addressByIp = AddressUtil.getAddressByIp(ipAddress);
if (StringUtils.isNotBlank(addressByIp.get("region"))) {
tVideoVisitor.setAreaCode(addressByIp.get("regionCode"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment