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