소스 검색

修改账号绑定

yumeng 5 년 전
부모
커밋
e1e252b743
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/BindAccountServiceImpl.java

+ 1 - 9
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/BindAccountServiceImpl.java

@@ -29,7 +29,6 @@ import java.util.Map;
 public class BindAccountServiceImpl extends ServiceImpl<BindAccountMapper, BindAccount> implements IBindAccountService {
     private static final Logger logger = LoggerFactory.getLogger(BindAccountServiceImpl.class);
 
-
     @Autowired
     BindAccountMapper bindAccountMapper;
 
@@ -67,13 +66,6 @@ public class BindAccountServiceImpl extends ServiceImpl<BindAccountMapper, BindA
      */
     @Override
     public String bindAuthorization(String advertiserId, String authorizationType) throws UnsupportedEncodingException {
-        BindAccount bindAccount = new BindAccount();
-        bindAccount.setAdvertiserId(advertiserId);
-
-        bindAccount.setType("login");
-        bindAccount.setType("authorization");
-        bindAccount.setLoginType(authorizationType);
-
         String codeUrl = "";
         if ("kuaishou".equals(authorizationType)) {
             codeUrl = getKuaishouCodeUrl(advertiserId);
@@ -81,7 +73,7 @@ public class BindAccountServiceImpl extends ServiceImpl<BindAccountMapper, BindA
         if ("toutiao".equals(authorizationType)) {
             codeUrl = getByteDanceCodeUrl(advertiserId);
         }
-        bindAccountMapper.insert(bindAccount);
+
         return codeUrl;
     }