From 69fdeb14b411673789b11cc3f31eee6c29baed27 Mon Sep 17 00:00:00 2001 From: MoMeak Date: Tue, 5 Dec 2017 09:56:30 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-5775=20=E5=B8=AEhzzz=E4=BC=A0pr=EF=BC=8C?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=AE=A1=E7=90=86=E9=82=A3=E8=BE=B9=E6=9C=89?= =?UTF-8?q?bug=EF=BC=8C=E6=98=8E=E6=98=8E=E4=B8=8A=E4=BC=A0=E4=BA=86?= =?UTF-8?q?=E4=B9=9F=E6=B2=A1=E5=90=88=E8=BF=9B=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/mainframe/SiteCenterToken.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 designer_base/src/com/fr/design/mainframe/SiteCenterToken.java diff --git a/designer_base/src/com/fr/design/mainframe/SiteCenterToken.java b/designer_base/src/com/fr/design/mainframe/SiteCenterToken.java new file mode 100644 index 000000000..16af4c365 --- /dev/null +++ b/designer_base/src/com/fr/design/mainframe/SiteCenterToken.java @@ -0,0 +1,17 @@ +package com.fr.design.mainframe; + +import com.fr.stable.CodeUtils; + +import java.text.SimpleDateFormat; +import java.util.Calendar; + +/** + * Created by hzzz on 2017/12/4. + */ +public class SiteCenterToken { + + public static String generateToken() { + String date = new SimpleDateFormat("yyyy-MM-dd").format(Calendar.getInstance().getTime()); + return CodeUtils.md5Encode(date, "", "MD5"); + } +}