|
@@ -234,16 +234,14 @@ public class MaterialUploadTaskServiceImpl
|
|
|
result.append(line);
|
|
|
}
|
|
|
bufferedReader.close();
|
|
|
- log.info(
|
|
|
- "头条上传素材时间:{} s ,账户:{}。code:{}",
|
|
|
- (System.currentTimeMillis() - l) / 1000, accountId, task.getSignature());
|
|
|
JSONObject resultJson = JSONObject.parseObject(result.toString());
|
|
|
if (!Check.isNull(resultJson)) {
|
|
|
if (resultJson.getInteger("code") == 0) {
|
|
|
materialUploadTaskMapper.updateStatusById(task.getId(), 3, "同步成功", new Date());
|
|
|
materialUploadTaskMapper.syncBytedance(task.getSignature());
|
|
|
log.info(
|
|
|
- "头条素材同步完成,accountId:{},code:{},返回信息:{}",
|
|
|
+ "头条素材同步完成,时间:{} s ,accountId:{},code:{},返回信息:{}",
|
|
|
+ (System.currentTimeMillis() - l) / 1000,
|
|
|
accountId,
|
|
|
task.getSignature(),
|
|
|
resultJson);
|