|
@@ -6,6 +6,7 @@ import com.mirage.core.annotation.WithOriginalResponse;
|
|
|
import com.mirage.core.exception.AppRuntimeException;
|
|
import com.mirage.core.exception.AppRuntimeException;
|
|
|
import com.mirage.core.meta.AppCode;
|
|
import com.mirage.core.meta.AppCode;
|
|
|
import com.mirage.core.meta.AuthType;
|
|
import com.mirage.core.meta.AuthType;
|
|
|
|
|
+import com.mirage.core.meta.HeaderKeys;
|
|
|
import com.mirage.core.meta.WebLogBean;
|
|
import com.mirage.core.meta.WebLogBean;
|
|
|
import com.mirage.core.utils.AppResult;
|
|
import com.mirage.core.utils.AppResult;
|
|
|
import com.mirage.core.utils.Constants;
|
|
import com.mirage.core.utils.Constants;
|
|
@@ -87,13 +88,12 @@ public class ControllerAround {
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- long now = WebLogBean.get().getBeginTime();
|
|
|
|
|
Auth auth = getAnnotation(clazz, method, Auth.class);
|
|
Auth auth = getAnnotation(clazz, method, Auth.class);
|
|
|
|
|
|
|
|
WithOriginalResponse withOriginResponse = getAnnotation(clazz, method, WithOriginalResponse.class);
|
|
WithOriginalResponse withOriginResponse = getAnnotation(clazz, method, WithOriginalResponse.class);
|
|
|
boolean returnOriginData = withOriginResponse != null;
|
|
boolean returnOriginData = withOriginResponse != null;
|
|
|
|
|
|
|
|
- String mirageAuth = request.getHeader("MIRAGE-AUTH");
|
|
|
|
|
|
|
+ String mirageAuth = request.getHeader(HeaderKeys.KEY_AUTH);
|
|
|
//BussinessAuth 附加Auth(admin) 作用
|
|
//BussinessAuth 附加Auth(admin) 作用
|
|
|
AuthType authType = auth == null ? null : auth.value();
|
|
AuthType authType = auth == null ? null : auth.value();
|
|
|
long startUserFilterTime = System.currentTimeMillis();
|
|
long startUserFilterTime = System.currentTimeMillis();
|
|
@@ -102,7 +102,7 @@ public class ControllerAround {
|
|
|
CsMinWechatUser minWechatUser = null;
|
|
CsMinWechatUser minWechatUser = null;
|
|
|
switch (authType) {
|
|
switch (authType) {
|
|
|
case COOKIES: {
|
|
case COOKIES: {
|
|
|
- String debugMod = request.getHeader("MIRAGE-X-DEBUG");
|
|
|
|
|
|
|
+ String debugMod = request.getHeader(HeaderKeys.KEY_DEBUG);
|
|
|
if(StringUtils.isNotBlank(debugMod)){
|
|
if(StringUtils.isNotBlank(debugMod)){
|
|
|
// userAccount = userService.getUserByAccount("18814867496");
|
|
// userAccount = userService.getUserByAccount("18814867496");
|
|
|
}else{
|
|
}else{
|