TASK:AiDA
This commit is contained in:
@@ -310,4 +310,18 @@ public class AccountController {
|
|||||||
public Response<AccountLoginVO> getAccountDetail() {
|
public Response<AccountLoginVO> getAccountDetail() {
|
||||||
return Response.success(accountService.getAccountDetail());
|
return Response.success(accountService.getAccountDetail());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@CrossOrigin
|
||||||
|
@GetMapping("/bindGoogle")
|
||||||
|
@ApiOperation(value = "绑定谷歌")
|
||||||
|
public Response<AccountLoginVO> bindGoogle(@RequestParam("credential") String credential) {
|
||||||
|
return Response.success(accountService.bindGoogle(credential));
|
||||||
|
}
|
||||||
|
|
||||||
|
@CrossOrigin
|
||||||
|
@GetMapping("/bindWeChat")
|
||||||
|
@ApiOperation(value = "绑定微信")
|
||||||
|
public Response<AccountLoginVO> bindWeChat(@RequestParam("code") String code) {
|
||||||
|
return Response.success(accountService.bindWeChat(code));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,4 +67,8 @@ public class ReDesignCollectionDTO {
|
|||||||
private String moodboardPosition;
|
private String moodboardPosition;
|
||||||
|
|
||||||
private String moodTemplateId;
|
private String moodTemplateId;
|
||||||
|
|
||||||
|
private List<String> requestIdList;
|
||||||
|
|
||||||
|
private Integer designNum;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,4 +208,8 @@ public interface AccountService extends IService<Account> {
|
|||||||
AccountLoginVO parseWeChatCode(String code);
|
AccountLoginVO parseWeChatCode(String code);
|
||||||
|
|
||||||
AccountLoginVO getAccountDetail();
|
AccountLoginVO getAccountDetail();
|
||||||
|
|
||||||
|
AccountLoginVO bindGoogle(String credential);
|
||||||
|
|
||||||
|
AccountLoginVO bindWeChat(String code);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1503,6 +1503,16 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
List<String> a = new ArrayList<>();
|
||||||
|
a.add("1023316923@qq.com");
|
||||||
|
a.add("Malinyuquan@gmail.com");
|
||||||
|
|
||||||
|
if (a.contains("malinyuquan@gmail.com")) {
|
||||||
|
log.info("aaaaaaaaaaaaaaaaaaaaa");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static final String QUERY_PAID_CUSTOMER_EMAIL = "SELECT distinct c.email " +
|
private static final String QUERY_PAID_CUSTOMER_EMAIL = "SELECT distinct c.email " +
|
||||||
"FROM `pmr_wc_order_stats` o " +
|
"FROM `pmr_wc_order_stats` o " +
|
||||||
"inner join `pmr_wc_customer_lookup` c " +
|
"inner join `pmr_wc_customer_lookup` c " +
|
||||||
@@ -2400,8 +2410,21 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
response.setAvatar(minioUtil.getPreSignedUrl(avatar, CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
response.setAvatar(minioUtil.getPreSignedUrl(avatar, CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
response.setFolloweeCount(portfolioService.getFolloweeCount(account.getId()));
|
response.setFolloweeCount(portfolioService.getFolloweeCount(account.getId()));
|
||||||
response.setFollowerCount(portfolioService.getFollowerCount(account.getId()));
|
response.setFollowerCount(portfolioService.getFollowerCount(account.getId()));
|
||||||
|
response.setSystemUser(1);
|
||||||
//判断是否常用ip 不是则发邮件提示
|
//判断是否常用ip 不是则发邮件提示
|
||||||
// calculateExceptionIp(RequestInfoUtil.getIpAddress(request), account);
|
// calculateExceptionIp(RequestInfoUtil.getIpAddress(request), account);
|
||||||
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AccountLoginVO bindGoogle(String credential) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AccountLoginVO bindWeChat(String code) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1562,8 +1562,8 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Boolean receiveDesignResults(JSONObject responseJSONObject) {
|
public Boolean receiveDesignResults(JSONObject responseJSONObject) {
|
||||||
String requestId = "UUID.randomUUID().toString()";
|
// String requestId = "UUID.randomUUID().toString()";
|
||||||
// String requestId = responseJSONObject.getString("requestId");
|
String requestId = responseJSONObject.getString("requestId");
|
||||||
Map<String, Object> context;
|
Map<String, Object> context;
|
||||||
synchronized (designContext) {
|
synchronized (designContext) {
|
||||||
log.info(designContext.toString());
|
log.info(designContext.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user