|
@@ -890,6 +890,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
*/
|
|
|
@Autowired
|
|
|
private KuaiShouVideoUploadMapper videoUploadMapper;
|
|
|
+ @Autowired
|
|
|
+ private KuaiShouVideoMapper kuaiShouVideoMapper;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> videoUpload(Long advertiserId, String accessToken, String videoUrl) {
|
|
@@ -936,6 +938,17 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
if (i > 0) {
|
|
|
logger.info("上传快手视频完成");
|
|
|
}
|
|
|
+
|
|
|
+ KuaiShouVideo video = new KuaiShouVideo();
|
|
|
+ video.setStatus(1);
|
|
|
+ QueryWrapper<KuaiShouVideo> queryWrapper = new QueryWrapper<>();
|
|
|
+ queryWrapper.eq("account_id", advertiserId);
|
|
|
+ queryWrapper.eq("local_url", videoUrl);
|
|
|
+ int y = kuaiShouVideoMapper.update(video, queryWrapper);
|
|
|
+ if (y > 0) {
|
|
|
+ logger.info("更新快手视频状态成功.accountId:{}", advertiserId);
|
|
|
+ }
|
|
|
+
|
|
|
returnMap.put("code", 0);
|
|
|
returnMap.put("message", "视频已上传文件");
|
|
|
returnMap.put("success", true);
|
|
@@ -1252,6 +1265,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
*/
|
|
|
@Autowired
|
|
|
private KuaiShouAppCreateMapper appCreateMapper;
|
|
|
+ @Autowired
|
|
|
+ private KuaiShouCreateAppTemplateMapper appTemplateMapper;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> appCreate(Long advertiserId, String accessToken, JSONObject requestJson) {
|
|
@@ -1342,6 +1357,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public Map<String, Object> urlAppCreate(Long accountId, String accessToken, JSONObject apkJson) {
|
|
|
logger.info("快手创建url应用");
|