|
@@ -48,6 +48,7 @@ import java.io.IOException;
|
|
|
import java.text.MessageFormat;
|
|
|
import java.util.Base64;
|
|
|
import java.util.Calendar;
|
|
|
+import java.util.Locale;
|
|
|
import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
@@ -110,6 +111,7 @@ public class TokenController extends BaseController {
|
|
|
public Object apiQueryUserInfo(@RequestParam(value = "clientType", required = false, defaultValue = "TEACHER") String clientType) {
|
|
|
|
|
|
// 校验客户端类型
|
|
|
+ clientType = clientType.toUpperCase(Locale.CHINESE);
|
|
|
if (EClientType.invalid(clientType)) {
|
|
|
return failed("无效的客户端类型");
|
|
|
}
|