|
|
package com.yoho.ufo.service.impl;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.qiniu.common.QiniuException;
|
|
|
import com.qiniu.common.Zone;
|
|
|
import com.qiniu.http.Response;
|
|
|
import com.qiniu.processing.OperationManager;
|
|
|
import com.qiniu.processing.OperationStatus;
|
|
|
import com.qiniu.storage.BucketManager;
|
...
|
...
|
@@ -12,12 +18,6 @@ import com.qiniu.util.Auth; |
|
|
import com.qiniu.util.StringMap;
|
|
|
import com.qiniu.util.UrlSafeBase64;
|
|
|
import com.yoho.ufo.exception.PlatformException;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
|
|
/**
|
|
|
* Created by li.ma on 2018/12/11.
|
...
|
...
|
@@ -94,8 +94,6 @@ public class QNliveUtil { |
|
|
logger.info("Resp is {} from bucketManager.fetch", fetch.key);
|
|
|
|
|
|
} catch (QiniuException e) {
|
|
|
//捕获异常信息
|
|
|
Response r = e.response;
|
|
|
logger.error("bucketManager.fetch find wrong fileKey is {}, cameraIdentify is {}, startTime is {}, endTime is {} error is {}", fileKey, cameraIdentify, startTime, endTime, e.response);
|
|
|
|
|
|
throw new PlatformException(400);
|
...
|
...
|
@@ -152,6 +150,8 @@ public class QNliveUtil { |
|
|
} else if (1 == operationStatus.code || 2 == operationStatus.code) {
|
|
|
return "operating";
|
|
|
}
|
|
|
|
|
|
logger.info("result queryPrefopStatus is {}, persistId is {}", operationStatus.code, persistId);
|
|
|
} catch (QiniuException e) {
|
|
|
logger.error("method queryPrefopStatus find wrong persistId is {}, error is {}", persistId, e.response);
|
|
|
} catch (Exception e) {
|
...
|
...
|
|