绑定邮箱时需要填写国家和职业
This commit is contained in:
@@ -3,7 +3,6 @@ package com.ai.da.service;
|
||||
import com.ai.da.common.response.PageBaseResponse;
|
||||
import com.ai.da.mapper.primary.entity.Account;
|
||||
import com.ai.da.mapper.primary.entity.AccountExtend;
|
||||
import com.ai.da.mapper.primary.entity.GoogleUser;
|
||||
import com.ai.da.mapper.primary.entity.TrialOrder;
|
||||
import com.ai.da.model.dto.*;
|
||||
import com.ai.da.model.vo.AccountLoginVO;
|
||||
@@ -49,7 +48,8 @@ public interface AccountService extends IService<Account> {
|
||||
* @return
|
||||
*/
|
||||
Boolean bindEmail(AccountBindEmailDTO accountBindEmailDTO);
|
||||
Boolean bindEmail(String email);
|
||||
|
||||
Boolean bindEmail(String email, String country, String occupation);
|
||||
|
||||
/**
|
||||
* 忘记密码
|
||||
|
||||
@@ -1263,12 +1263,12 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
|
||||
static {
|
||||
HikariConfig config = new HikariConfig();
|
||||
config.setJdbcUrl("jdbc:mysql://code-create.com.hk:3306/db1nfvsgmjp3b8");
|
||||
config.setUsername("uafqtz4gsvfrw");
|
||||
config.setPassword("aida123456.");
|
||||
// config.setJdbcUrl("jdbc:mysql://localhost:3306/code-create-local?serverTimezone=UTC");
|
||||
// config.setUsername("root");
|
||||
// config.setPassword("root");
|
||||
// config.setJdbcUrl("jdbc:mysql://code-create.com.hk:3306/db1nfvsgmjp3b8");
|
||||
// config.setUsername("uafqtz4gsvfrw");
|
||||
// config.setPassword("aida123456.");
|
||||
config.setJdbcUrl("jdbc:mysql://localhost:3306/code-create-local?serverTimezone=UTC");
|
||||
config.setUsername("root");
|
||||
config.setPassword("root");
|
||||
config.addDataSourceProperty("cachePrepStmts", "true");
|
||||
config.addDataSourceProperty("prepStmtCacheSize", "250");
|
||||
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
|
||||
@@ -2586,10 +2586,12 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean bindEmail(String email) {
|
||||
public Boolean bindEmail(String email, String country, String occupation) {
|
||||
AuthPrincipalVo userHolder = UserContext.getUserHolder();
|
||||
Account account = accountMapper.selectById(userHolder.getId());
|
||||
account.setUserEmail(email);
|
||||
account.setCountry(country);
|
||||
account.setOccupation(occupation);
|
||||
accountMapper.updateById(account);
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user