Commit 42ac79c6 LN

用户重复创建问题修改

1 个父辈 fc8e567d
......@@ -294,6 +294,14 @@ public class Micron20031Api {
* @param username
*/
public static List<String> checkUserRights(String username) throws ApiException {
if(Debug) {
String reMsg = "{\"username\":\"rragubathy\",\"role\":[\"Order\",\"Deposit\",\"Withdrawal\",\"Return\",\"Remove\",\"Maintenance\",\"Configure\",\"Transaction History\"],\"materialType\":\"SOLDER_PASTE\",\"message\":\"\",\"status\":\"PASS\"}";
JSONObject jsonObject = JSONObject.parseObject(reMsg);
List roleList = jsonObject.getObject("role", List.class);
return roleList;
}
String checkUserRightsUrl = getUrl(api_CheckUserRights);
Map<String, Object> dataMap = new HashMap<>();
dataMap.put("Username", username);
......
......@@ -115,7 +115,7 @@ public class MicronLoginController {
@ResponseBody
@RequestMapping("/loginAuth")
@AnonymousAccess
public ResponseEntity<Object> loginAuth(HttpServletRequest request) throws Exception {
public synchronized ResponseEntity<Object> loginAuth(HttpServletRequest request) throws Exception {
String code = request.getParameter("code");
log.info("镁光用户登录的授权code为:" + code);
if (StringUtils.isNotBlank(code)) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!