📄 creatpassword.java
字号:
package dynamicP;
public class CreatPassword {
private String minite; //当前时间(分)
private String password; //密码
private String gameKey; //密钥
CreatPassword(String _GameKey) {
this.gameKey = _GameKey;
}
public String getPassword() { //返回密码
try {
DateTime t = new DateTime();
minite = t.getMinite();
DPCMobileAuth au = new DPCMobileAuth(gameKey, minite);
password = au.GetPassword();
} catch(Exception e) {
e.printStackTrace();
}
return password;
}
public String getMinite() { //返回当前时间(分)
DateTime t = new DateTime();
return t.getMinite();
}
public long getSecond() { //返回当前时间(秒)
DateTime t = new DateTime();
return t.getSecond();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -