diff --git a/hoj-vue/src/views/oj/problem/Problem.vue b/hoj-vue/src/views/oj/problem/Problem.vue index 1189ebd5..c7351775 100644 --- a/hoj-vue/src/views/oj/problem/Problem.vue +++ b/hoj-vue/src/views/oj/problem/Problem.vue @@ -273,7 +273,12 @@ show-password > - + OK diff --git a/sql&setting/hoj-data-backup-dev.yml b/sql&setting/hoj-data-backup-dev.yml index 2bc82c90..e982e0aa 100644 --- a/sql&setting/hoj-data-backup-dev.yml +++ b/sql&setting/hoj-data-backup-dev.yml @@ -2,26 +2,27 @@ hoj: jwt: # 加密秘钥 secret: zsc-acm-hoj - # token有效时长,1小时,单位秒 + # token有效时长,24小时,单位秒 expire: 86400 + # 6小时内还有请求,可进行刷新 checkRefreshExpire: 21600 header: token judge: # 调用判题服务器的token token: zsc-acm-hoj-judge-server db: - host: 129.204.177.72 - port: 3306 + host: your_mysql_host + port: your_mysql_port name: hoj - username: root - password: Hzh&hy2020 + username: your_mysql_username + password: your_mysql_password mail: ssl: true - username: 372347736@qq.com - password: hhaociozbzklbigh - host: smtp.qq.com + username: your_email_username + password: your_email_password + host: your_email_host redis: - host: 129.204.177.72 + host: your_redis_host port: 6371 web-config: base-url: http://localhost:9010 diff --git a/sql&setting/hoj-judge-server-prod.yml b/sql&setting/hoj-judge-server-prod.yml index 74252c1b..a56bee5d 100644 --- a/sql&setting/hoj-judge-server-prod.yml +++ b/sql&setting/hoj-judge-server-prod.yml @@ -1,10 +1,10 @@ hoj: judge: db: - username: root - password: Hzh&hy2020 - host: 129.204.177.72 - port: 3306 + username: your_mysql_username + password: your_mysql_password + host: your_mysql_host + port: your_mysql_port name: hoj # 调用判题服务器的token,与数据服务后台必须一致! token: zsc-acm-hoj-judge-server \ No newline at end of file