|
|
@@ -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);
|
|
|
});
|