Commit 769be709 authored by yanzg's avatar yanzg

身份证识别

parent 0eb470e6
......@@ -216,11 +216,10 @@ public class TokenHelper {
* @param data 数据时间
*/
public static void write(String token, String dataPwd, RsaHelper.RsaInfo rsaInfo, long expire, Object data) {
String id = getCurrentId();
TokenData tokenData = cache.get(id);
TokenData tokenData = cache.get();
if (tokenData == null) {
tokenData = new TokenData();
cache.put(id, tokenData);
cache.set(tokenData);
}
tokenData.setToken(token);
tokenData.setDataPwd(dataPwd);
......
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