Quellcode durchsuchen

判断用户在SSO中是否存在修改

丁治程 vor 2 Monaten
Ursprung
Commit
1c96a7b7a1

+ 4 - 2
jeecg-module-interlock/src/main/java/org/jeecg/modules/iotedgeCollectData/controller/IotedgeCollectDataController.java

@@ -253,8 +253,10 @@ public class IotedgeCollectDataController extends JeecgController<IotedgeCollect
 	 @AutoLog(value = "IoTEdge-SSO-判断用户是否存在")
 	 @ApiOperation(value="IoTEdge-SSO-判断用户是否存在", notes="IoTEdge-SSO-判断用户是否存在")
 	 @PostMapping(value = "/ifUserInSoo")
-	 public Result<Boolean> ifUserNameInSSO(@RequestBody String userName){
-		 JSONObject jsonObject = restClientService.ifUserInSSO(userName);
+	 public Result<Boolean> ifUserNameInSSO(@RequestBody String userNames){
+		 JSONObject jsonObject1 = JSONObject.parseObject(userNames);
+		 String userName1 = (String) jsonObject1.get("userName");
+		 JSONObject jsonObject = restClientService.ifUserInSSO(userName1);
 		 Boolean existing = (Boolean) jsonObject.get("existing");
 		 return Result.OK(existing);
 	 }