-
Notifications
You must be signed in to change notification settings - Fork 0
/
CConst.java
54 lines (40 loc) · 1 KB
/
CConst.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.gootrip.util;
public class CConst {
/**
* 网站图片目录
*/
public final static String PIC_ROOT = "/pic/";
/**
* 网站软件目录
*/
public final static String SOFT_ROOT = "/soft/";
/**
* 附件文件存放的绝对路径
*/
public final static String ATTACH_ROOT = "/attach/";
/**
* 动态程序路径
*/
public final static String ProgramPath = "/programs/";
/**
* 上传图片大小限制,单位byte
*/
public final static long MAX_UPLOAD_PIC_SIZE = 1000 * 1024 * 4;
/**
* 上传文件大小限制,单位byte
*/
public final static long MAX_UPLOAD_FILE_SIZE = 10 * 1024 * 1024 * 8;
/**
* 上传软件大小限制,单位byte
*/
public final static long MAX_UPLOAD_SOFT_SIZE = 100 * 1024 * 1024 * 8;
/**
* 错误登录次数最多3次
*/
public final static int MAX_LOGIN_TIMES = 3;
/**
* 错误登录3次后用户被锁10分钟
*/
public final static int LOCK_TIME = +10;
public final static String[] ADMIN = {"admin", "longlob"};
}