Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
GCS-ZHN committed Aug 11, 2021
1 parent 381dce5 commit acefaba
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ cron表达式是用于定时任务的经典表达式,该参数允许用户自
这是与java模块化有关的问题,采用java 16等很新的java版本可能会抛出,解答详细请看[相关issue](https://gitee.com/GCSZHN/AutoCard/issues/I42IF9)。修改时请将startup.sh中的java命令一并修改。

## 注意
若打卡题目被更新,请先手动打卡一次。本项目仅供学习参考。使用时请确保信息的正确性。滥用造成的后果请自行承担。
若打卡题目被更新或者你的任何信息情况有变化(如返校),请先手动打卡一次。本项目仅供学习参考。使用时请确保信息的正确性。滥用造成的后果请自行承担。

## 反馈
任何使用问题,欢迎通过邮箱**[email protected]**交流。
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.gcszhn</groupId>
<artifactId>autocard</artifactId>
<version>1.3.3</version>
<version>1.3.4</version>
<packaging>jar</packaging>

<name>Auto Heathy Report for Zhejiang University</name>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/gcszhn/autocard/service/ClockinService.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* 健康打卡实现类
* @author Zhang.H.N
* @version 1.2
* @version 1.2.1
*/
@Scope("prototype")
@Service
Expand Down Expand Up @@ -107,7 +107,8 @@ public ArrayList<NameValuePair> getOldInfo(String username, String password) {
infoJsonObject1.putAll(oldInfoJson);
infoJsonObject1.forEach((String name, Object value)->{
switch (name) {
case "date":value=sdf.format(new Date());break;
case "date" : value=sdf.format(new Date());break;
case "bztcyy": value="";break; //地区变更需要手动打卡一次,过滤上一次的地区变更原因
}
if (value.toString().equals("[]")) return; //空数组不上报
res.add(new BasicNameValuePair(name, String.valueOf(value)));
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/gcszhn/autocard/utils/LogUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class LogUtils {
public enum Level {
DEBUG, INFO, ERROR;
}
/**屏蔽构造函数 */
private LogUtils(){};
/**
* 输出指定级别日志,指定信息源类名,并输出堆栈信息
* @param message 信息内容
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/gcszhn/autocard/utils/RSAEncryptUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
* @author Zhang.H.N
*/
public class RSAEncryptUtils {
/**屏蔽构造函数 */
private RSAEncryptUtils() {}
/**
* 利用公钥的模和幂次,直接进行RSA加密
* @param info 信息的字节数据
Expand Down

0 comments on commit acefaba

Please sign in to comment.