|
@@ -105,6 +105,9 @@ public class WudaOpenApiController {
|
|
|
@Aac(auth = BOOL.FALSE)
|
|
|
public Result login(@ApiParam(value = "授权码信息", required = true) @RequestParam String code) throws NoSuchAlgorithmException {
|
|
|
String[] values = StringUtils.split(code, SignatureEntityTest.FIELD_JOINER);
|
|
|
+ if (Objects.isNull(values) || values.length != 2) {
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("临时授权码出错,请重新获取");
|
|
|
+ }
|
|
|
log.info("values:{}", JacksonUtil.parseJson(values));
|
|
|
QueryWrapper<SysUser> wrapper = new QueryWrapper<>();
|
|
|
wrapper.lambda().eq(SysUser::getLoginName, values[0]);
|