|
|
|
@@ -1,5 +1,7 @@ |
|
|
|
package com.simple.domain.po; |
|
|
|
|
|
|
|
import com.simple.utils.BaseConstant; |
|
|
|
|
|
|
|
import javax.persistence.*; |
|
|
|
import java.util.*; |
|
|
|
import java.math.*; |
|
|
|
@@ -11,8 +13,6 @@ import java.io.Serializable; |
|
|
|
@Table(name = "wx_merchant_b_user") |
|
|
|
public class WxMerchantBUser implements Serializable { |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
//12小时后过期 |
|
|
|
private final static int EXPIRE = 3600 * 12; |
|
|
|
|
|
|
|
@Id |
|
|
|
protected Long id; |
|
|
|
@@ -208,7 +208,7 @@ public class WxMerchantBUser implements Serializable { |
|
|
|
//生成一个token |
|
|
|
String token = UUID.randomUUID().toString(); |
|
|
|
//过期时间 |
|
|
|
Date expireTime = new Date(currentDate.getTime() + EXPIRE * 1000); |
|
|
|
Date expireTime = new Date(currentDate.getTime() + BaseConstant.EXPIRE * 1000); |
|
|
|
setToken(token); |
|
|
|
setExpireTime(expireTime); |
|
|
|
} |
|
|
|
|