|
@@ -79,18 +79,13 @@ public class KuaiShouMaterialUploadServiceImpl implements IKuaiShouMaterialUploa
|
|
|
returnJson.put("photoId", photoId);
|
|
|
returnJson.put("signature", signature);
|
|
|
returnJson.put("message", "上传成功");
|
|
|
- Thread thread = new Thread() {
|
|
|
- @Override
|
|
|
- public void run() {
|
|
|
- try {
|
|
|
- Thread.sleep(2 * 1000L);
|
|
|
- kuaishouInterfaceService.getVideoInfo(accessToken, accountId, photoId);
|
|
|
- } catch (InterruptedException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- };
|
|
|
- thread.start();
|
|
|
+ try {
|
|
|
+ Thread.sleep(1 * 1000L);
|
|
|
+ kuaishouInterfaceService.getVideoInfo(accessToken, accountId, photoId);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
LoadFileUtil.delFile(localUrl);
|
|
|
log.info("快手素材上传完成,accountId:{},code:{},返回信息:{}", accountId, signature, resultJson);
|