|
@@ -1,7 +1,6 @@
|
|
|
package com.qmth.boot.api.config;
|
|
|
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
-import com.qmth.boot.api.annotation.BOOL;
|
|
|
import com.qmth.boot.core.enums.Platform;
|
|
|
import com.qmth.boot.core.rateLimit.annotation.RateLimit;
|
|
|
import com.qmth.boot.core.rateLimit.entity.RateLimitRule;
|
|
@@ -47,14 +46,14 @@ public class ApiConfig {
|
|
|
if (annotation == null) {
|
|
|
return;
|
|
|
}
|
|
|
- if (annotation.strict() != BOOL.NULL) {
|
|
|
- this.strict = (annotation.strict() == BOOL.TRUE);
|
|
|
+ if (annotation.strict().length > 0) {
|
|
|
+ this.strict = annotation.strict()[0];
|
|
|
}
|
|
|
if (annotation.platform().length > 0) {
|
|
|
this.platform = annotation.platform();
|
|
|
}
|
|
|
- if (annotation.auth() != BOOL.NULL) {
|
|
|
- this.auth = (annotation.auth() == BOOL.TRUE);
|
|
|
+ if (annotation.auth().length > 0) {
|
|
|
+ this.auth = annotation.auth()[0];
|
|
|
}
|
|
|
if (annotation.ipAllow().length > 0) {
|
|
|
this.ipAllow = annotation.ipAllow();
|