|
@@ -4,10 +4,7 @@ import cn.com.ctop.common.module.entity.BindAccountLogin;
|
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
|
import cn.com.ctop.common.module.entity.UserAllocation;
|
|
|
import cn.com.ctop.common.module.mapper.CtopOauthTokenMapper;
|
|
|
-import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
|
-import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
|
-import cn.com.ctop.common.module.service.IOauthConfigService;
|
|
|
-import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
|
+import cn.com.ctop.common.module.service.*;
|
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
import cn.com.ctop.kuaishou.modules.ai.entity.AiKuaishouAccountTargetTemplate;
|
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouAccountTargetTemplateService;
|
|
@@ -72,13 +69,18 @@ public class SampleTest {
|
|
|
private CtopOauthTokenMapper oauthTokenMapper;
|
|
|
@Autowired
|
|
|
private IKuaishouInterfaceService iKuaishouInterfaceService;
|
|
|
+ @Autowired
|
|
|
+ private IRefreshTokenService refreshTokenService;
|
|
|
|
|
|
|
|
|
@Test
|
|
|
public void loadBytedanceCreativeData() throws ParseException {
|
|
|
CtopOauthToken token = oauthTokenMapper.selectByAccountId(9784689L);
|
|
|
|
|
|
- iKuaishouInterfaceService.getVideoList(token, null, null);
|
|
|
+ refreshTokenService.getKuaiShouRefresh();
|
|
|
+
|
|
|
+
|
|
|
+ // iKuaishouInterfaceService.getVideoList(token, null, null);
|
|
|
|
|
|
/* List<CtopOauthToken> oauthTokens = oauthTokenMapper.selectKuaiShouTokens(CtopAdConstant.PLATFORM_TYPE_KUAISHOU);
|
|
|
if (!Check.isNull(oauthTokens)) {
|