Просмотр исходного кода

:tada: token接口增加租户id传参判断

smallchill 6 лет назад
Родитель
Сommit
8d1d657823

+ 1 - 1
src/main/java/org/springblade/modules/auth/controller/AuthController.java

@@ -53,7 +53,7 @@ public class AuthController {
 	@ApiLog("登录用户验证")
 	@PostMapping("/oauth/token")
 	@ApiOperation(value = "获取认证token", notes = "传入租户ID:tenantId,账号:account,密码:password")
-	public Kv token(@ApiParam(value = "租户ID", required = true) @RequestParam(defaultValue = "000000", required = false) String tenantId,
+	public Kv token(@ApiParam(value = "租户ID", required = true) @RequestParam String tenantId,
 					@ApiParam(value = "账号", required = true) @RequestParam(required = false) String username,
 					@ApiParam(value = "密码", required = true) @RequestParam(required = false) String password) {