Commit 0d5ba9d2 by zhangxingmin

push

parent b62266e0
package com.yd.user.api.service.impl;
import com.yd.common.exception.BusinessException;
import com.yd.common.utils.RedisUtil;
import com.yd.user.api.service.ApiScanLoginService;
import com.yd.user.api.utils.WeChatApiUtil;
......@@ -61,12 +62,12 @@ public class ApiScanLoginServiceImpl implements ApiScanLoginService {
request.getProjectBizId(),
request.getPlatformType() == null ? ScanLoginConstants.PLATFORM_TYPE_GZH : request.getPlatformType());
if (projectBind == null) {
throw new RuntimeException("租户项目未绑定公众号平台");
throw new BusinessException("租户项目未绑定公众号平台");
}
//查询第三方平台基础配置信息
ThirdPartyPlatform platform = thirdPartyPlatformService.getByPlatformCode(projectBind.getPlatformCode());
if (platform == null) {
throw new RuntimeException("第三方平台配置信息不存在");
throw new BusinessException("第三方平台配置信息不存在");
}
// 2. 生成 qrId
......@@ -206,11 +207,11 @@ public class ApiScanLoginServiceImpl implements ApiScanLoginService {
request.getProjectBizId(),
request.getPlatformType() == null ? ScanLoginConstants.PLATFORM_TYPE_GZH : request.getPlatformType());
if (projectBind == null) {
throw new RuntimeException("项目未绑定公众号平台");
throw new BusinessException("项目未绑定公众号平台");
}
ThirdPartyPlatform platform = thirdPartyPlatformService.getByPlatformCode(projectBind.getPlatformCode());
if (platform == null) {
throw new RuntimeException("平台配置不存在");
throw new BusinessException("平台配置不存在");
}
// 2. 生成 qrId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment