|
@@ -108,34 +108,15 @@ public class RequestInterceptor extends JedisUtil implements HandlerInterceptor
|
108
|
108
|
private Boolean interceptorApi(String uri) {
|
109
|
109
|
boolean rtn = false;
|
110
|
110
|
String[] url = new String[]{
|
111
|
|
- "/ps/start_paper",
|
112
|
|
- "/ps/sstart_paper",
|
113
|
|
- "/psw/sstart_paper",
|
114
|
|
- "/psw/start_paper",
|
115
|
|
- "/croom/saveclass",
|
116
|
111
|
"/resource/add",
|
117
|
|
- "/recite/save",
|
118
|
|
- "/read/savers",
|
119
|
|
- "/ps/submit_question",
|
120
|
|
- "/ps/submit_paper",
|
121
|
|
- "/ps/ssubmit_question",
|
122
|
|
- "/ps/ssubmit_paper",
|
123
|
|
- "/ps/scorrect",
|
124
|
|
- "/ps/correc",
|
125
|
|
- "/paper/saves",
|
126
|
|
- "/paper/saveq",
|
127
|
|
- "/pg/save",
|
128
|
|
- "/question/add",
|
129
|
|
- "/basket/add",
|
130
|
|
- "/recites/up",
|
131
|
|
- "/question_class/end_correct",
|
132
|
112
|
"/research/save",
|
133
|
113
|
"/researchu/up",
|
134
|
|
- "/notice/add",
|
|
114
|
+ "/notice/add"
|
135
|
115
|
};
|
136
|
116
|
|
137
|
117
|
for (int i = 0; i < url.length; i++) {
|
138
|
|
- if (uri.equals(url[i])) {
|
|
118
|
+ String urlstr = "/sapi"+url[i];
|
|
119
|
+ if (uri.equals(urlstr)) {
|
139
|
120
|
rtn = true;
|
140
|
121
|
break;
|
141
|
122
|
}
|