refix name

This commit is contained in:
zhongchao
2021-02-04 18:35:16 +08:00
parent f05837b653
commit 3e45e75268
10 changed files with 32 additions and 56 deletions

View File

@@ -22,8 +22,6 @@ import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import static android.content.ContentValues.TAG;
/**
* @author lixiaopeng
* @description 道路搜索
@@ -81,7 +79,7 @@ public class MogoRoadSearchManager {
@Override
public void onNext(@NonNull BaseData<RoadInfos> roadInfos) {
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "queryRoadInfos onNext roadInfos = " + roadInfos.getResult().getData());
Log.d(HttpConstant.TAG, "queryRoadInfos onNext roadInfos = " + roadInfos.getResult().getData());
}
callback.onSuccess(roadInfos);
}
@@ -94,7 +92,7 @@ public class MogoRoadSearchManager {
@Override
public void onComplete() {
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "queryRoadInfos onComplete ");
Log.d(HttpConstant.TAG, "queryRoadInfos onComplete ");
}
}
});

View File

@@ -6,5 +6,5 @@ package com.mogo.cloud.tanlu.constant;
* @since 2021/1/20
*/
public class HttpConstant {
public static final String TANLU = "TANLU_MODULE";
public static final String TAG = "MoGoAiCloud_TanLu";
}

View File

@@ -72,7 +72,7 @@ public class CosUpload implements CosStatusCallback {
videoCoverImage = getVideoPicPath();
boolean isSuccess = getVideoThumbnail(info.getFilePath(), videoCoverImage);
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "isSuccess = " + isSuccess + "--videoCoverImage = " + videoCoverImage);
Log.d(HttpConstant.TAG, "isSuccess = " + isSuccess + "--videoCoverImage = " + videoCoverImage);
}
filePath.add(info.getFilePath());
filePath.add(videoCoverImage);
@@ -81,7 +81,7 @@ public class CosUpload implements CosStatusCallback {
filePath.add(info.getFilePath());
}
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "filePath.size() = " + filePath.size());
Log.d(HttpConstant.TAG, "filePath.size() = " + filePath.size());
}
CosUploadManagerImpl.getInstance(mContext.getApplicationContext())
.upload(filePath, mPicEventId, DbPriorityConfig.PRIORITY_HIGH);
@@ -99,8 +99,8 @@ public class CosUpload implements CosStatusCallback {
@Override
public void uploadCosCompleted(String cosPath, String eventId, String downloadUrl, String localPath) {
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "uploadCosCompleted ----> cosPath =" + cosPath + "--eventId =" + eventId);
Log.d(HttpConstant.TANLU, "uploadCosCompleted ----> downloadUrl =" + downloadUrl + "--localPath =" + localPath);
Log.d(HttpConstant.TAG, "uploadCosCompleted ----> cosPath =" + cosPath + "--eventId =" + eventId);
Log.d(HttpConstant.TAG, "uploadCosCompleted ----> downloadUrl =" + downloadUrl + "--localPath =" + localPath);
}
if (filePath.size() == 2) {
if (isVideo(localPath)) { //如果是视频 localPath
@@ -109,7 +109,7 @@ public class CosUpload implements CosStatusCallback {
mCosPicUrl = downloadUrl;
}
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "mCosVideoUrl = " + mCosVideoUrl + " >>>mCosPicUrl = " + mCosPicUrl);
Log.d(HttpConstant.TAG, "mCosVideoUrl = " + mCosVideoUrl + " >>>mCosPicUrl = " + mCosPicUrl);
}
if (mCosPicUrl != null && mCosVideoUrl != null) {
sendInformation();
@@ -123,7 +123,7 @@ public class CosUpload implements CosStatusCallback {
@Override
public void uploadCosFailed(String cosPath, String eventId, String localPath) {
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.e(HttpConstant.TANLU, "uploadCosFailed ----> cosPath = " + cosPath + "--eventId =" + eventId + "--localPath =" + localPath);
Log.e(HttpConstant.TAG, "uploadCosFailed ----> cosPath = " + cosPath + "--eventId =" + eventId + "--localPath =" + localPath);
}
sendInformation();
}
@@ -149,7 +149,7 @@ public class CosUpload implements CosStatusCallback {
public void onSuccess(BaseData<UploadResult> result) {
if (result != null && result.getResult() != null) {
if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isShowDebugLog()) {
Log.d(HttpConstant.TANLU, "uploadRoadInfo result.id = " + result.getResult().id);
Log.d(HttpConstant.TAG, "uploadRoadInfo result.id = " + result.getResult().id);
}
}
mCallback.onSuccess(result);