添加mybatisplus父模块,调整依赖关系,增加P结尾的mp代码生成器
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
package co.yixiang;
|
||||
|
||||
import co.yixiang.modules.activity.service.YxStoreCouponUserService;
|
||||
import co.yixiang.annotation.AnonymousAccess;
|
||||
import co.yixiang.utils.SpringContextHolder;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
|
@ -44,7 +44,7 @@ public class RedisServiceImpl implements RedisService {
|
||||
continue;
|
||||
}
|
||||
DataType dataType = redisTemplate.type(s.toString());
|
||||
if(!dataType.code().equals("string")) continue;
|
||||
if(!"string".equals(dataType.code())) continue;
|
||||
RedisVo redisVo = new RedisVo(s.toString(),redisTemplate.opsForValue().get(s.toString()).toString());
|
||||
redisVos.add(redisVo);
|
||||
}
|
||||
|
@ -109,6 +109,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.antMatchers("/swagger-resources/**").permitAll()
|
||||
.antMatchers("/webjars/**").permitAll()
|
||||
.antMatchers("/*/api-docs").permitAll()
|
||||
.antMatchers("/v2/api-docs-ext").permitAll()
|
||||
//.antMatchers("/api/wxmp/**").permitAll()
|
||||
|
||||
// 文件
|
||||
.antMatchers("/avatar/**").permitAll()
|
||||
.antMatchers("/file/**").permitAll()
|
||||
|
@ -122,7 +122,12 @@ public class AuthController {
|
||||
// 几位数运算,默认是两位
|
||||
captcha.setLen(2);
|
||||
// 获取运算的结果
|
||||
String result = captcha.text();
|
||||
String result ="";
|
||||
try {
|
||||
result = new Double(Double.parseDouble(captcha.text())).intValue()+"";
|
||||
}catch (Exception e){
|
||||
result = captcha.text();
|
||||
}
|
||||
String uuid = properties.getCodeKey() + IdUtil.simpleUUID();
|
||||
// 保存
|
||||
redisUtils.set(uuid, result, expiration, TimeUnit.MINUTES);
|
||||
|
Reference in New Issue
Block a user