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

Merge branch 'master' of http://192.168.1.218:3000/lianghanqiang/ldt

lianghanqiang 4 лет назад
Родитель
Сommit
7ba282e8c5

+ 1 - 1
src/main/java/org/springblade/gateway/shop_gateway/controller/AppAccountController.java

@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
-import liquibase.pro.packaged.A;
 import lombok.AllArgsConstructor;
 import lombok.SneakyThrows;
 import org.springblade.common.enums.ResCode;
@@ -58,6 +57,7 @@ public class AppAccountController {
 		});
 		Account account = new Account();
 		BeanUtil.copyProperties(appAccountDto,account);
+		account.setSecret(DigestUtil.hex(account.getSecret()));
 		Assert.isFalse(accountService.saveOrUpdate(account),()->{
 			throw new ServiceException(ResCode.SHOP_REGISTER_ERROR);
 		});