parent
bd2367faa7
commit
5fa4069fba
|
@ -16,6 +16,7 @@ import io.metersphere.commons.utils.BeanUtils;
|
|||
import io.metersphere.commons.utils.CommonBeanFactory;
|
||||
import io.metersphere.commons.utils.LogUtil;
|
||||
import io.metersphere.commons.utils.SessionUtils;
|
||||
import io.metersphere.i18n.Translator;
|
||||
import io.metersphere.service.ProjectApplicationService;
|
||||
import io.metersphere.track.service.TestPlanApiCaseService;
|
||||
import io.metersphere.track.service.TestPlanScenarioCaseService;
|
||||
|
@ -518,7 +519,7 @@ public class ShareInfoService {
|
|||
public void validateExpired(ShareInfo shareInfo) {
|
||||
// 有效期根据类型从ProjectApplication中获取
|
||||
if(shareInfo == null ){
|
||||
MSException.throwException("连接已失效,请重新获取!");
|
||||
MSException.throwException(Translator.get("connection_expired"));
|
||||
}
|
||||
String type = "";
|
||||
if(shareInfo.getShareType().equals("PERFORMANCE_REPORT")){
|
||||
|
@ -544,7 +545,7 @@ public class ShareInfoService {
|
|||
private void millisCheck(long compareMillis, long millis,String shareInfoId) {
|
||||
if (compareMillis>millis) {
|
||||
shareInfoMapper.deleteByPrimaryKey(shareInfoId);
|
||||
MSException.throwException("连接已失效,请重新获取!");
|
||||
MSException.throwException(Translator.get("connection_expired"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -279,6 +279,7 @@ test_case_status_error=Error
|
|||
test_case_status_success=Success
|
||||
test_case_status_trash=Trash
|
||||
test_case_status_saved=Saved
|
||||
connection_expired=The connection has expired, please get it again
|
||||
# track home
|
||||
api_case=Api
|
||||
performance_case=Performance
|
||||
|
|
|
@ -274,6 +274,7 @@ group_permission=用户组与权限
|
|||
test_case_status_prepare=未开始
|
||||
test_case_status_running=进行中
|
||||
test_case_status_finished=已完成
|
||||
connection_expired=连接已失效,请重新获取
|
||||
# track home
|
||||
api_case=接口用例
|
||||
performance_case=性能用例
|
||||
|
|
|
@ -274,6 +274,7 @@ group_permission=用戶組與權限
|
|||
test_case_status_prepare=未開始
|
||||
test_case_status_running=進行中
|
||||
test_case_status_finished=已完成
|
||||
connection_expired=連接已失效,請重新獲取
|
||||
# track home
|
||||
api_case=接口用例
|
||||
performance_case=性能用例
|
||||
|
|
|
@ -947,26 +947,22 @@
|
|||
{
|
||||
"id": "PERSONAL_INFORMATION:READ+EDIT",
|
||||
"name": "permission.personal_information.personal_setting",
|
||||
"resourceId": "PERSONAL_INFORMATION",
|
||||
"license": true
|
||||
"resourceId": "PERSONAL_INFORMATION"
|
||||
},
|
||||
{
|
||||
"id": "PERSONAL_INFORMATION:READ+API_KEYS",
|
||||
"name": "permission.personal_information.api_keys",
|
||||
"resourceId": "PERSONAL_INFORMATION",
|
||||
"license": true
|
||||
"resourceId": "PERSONAL_INFORMATION"
|
||||
},
|
||||
{
|
||||
"id": "PERSONAL_INFORMATION:READ+EDIT_PASSWORD",
|
||||
"name": "permission.personal_information.edit_password",
|
||||
"resourceId": "PERSONAL_INFORMATION",
|
||||
"license": true
|
||||
"resourceId": "PERSONAL_INFORMATION"
|
||||
},
|
||||
{
|
||||
"id": "PERSONAL_INFORMATION:READ+THIRD_ACCOUNT",
|
||||
"name": "permission.personal_information.third_account",
|
||||
"resourceId": "PERSONAL_INFORMATION",
|
||||
"license": true
|
||||
"resourceId": "PERSONAL_INFORMATION"
|
||||
}
|
||||
],
|
||||
"resource": [
|
||||
|
@ -1127,8 +1123,7 @@
|
|||
},
|
||||
{
|
||||
"id": "PERSONAL_INFORMATION",
|
||||
"name": "permission.personal_information.name",
|
||||
"license": true
|
||||
"name": "permission.personal_information.name"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue