add voice guide
This commit is contained in:
@@ -10,6 +10,7 @@ import android.util.ArrayMap;
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.alibaba.android.arouter.launcher.ARouter;
|
||||
import com.mogo.commons.debug.DebugConfig;
|
||||
import com.mogo.commons.network.ParamsProvider;
|
||||
import com.mogo.commons.network.SubscribeImpl;
|
||||
import com.mogo.commons.network.Utils;
|
||||
import com.mogo.commons.voice.AIAssist;
|
||||
@@ -50,6 +51,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ public class ShareConstants {
|
||||
*/
|
||||
public static final String KEY_SHARE_OUTER_GUIDE = "KEY_SHARE_OUTER_GUIDE";
|
||||
public static final String KEY_SHARE_OUTER_GUIDE_TIME = "KEY_SHARE_OUTER_GUIDE_TIME";
|
||||
public static final String KEY_SERVER_SHOW_DAY_COUNT = "KEY_SERVER_SHOW_DAY_COUNT";
|
||||
|
||||
/**
|
||||
* 内部触发
|
||||
@@ -112,7 +113,11 @@ public class ShareConstants {
|
||||
public static final String KEY_CLICK_SHARE_ITEM_TIME = "KEY_CLICK_SHARE_ITEM_TIME";
|
||||
|
||||
//1天的毫秒 TODO
|
||||
// public static final long ONE_DAY_TIME = 86400000;
|
||||
public static final long ONE_DAY_TIME = 120000;
|
||||
public static final long ONE_DAY_TIME = 86400000;
|
||||
// public static final long ONE_DAY_TIME = 60000;
|
||||
|
||||
//7天的毫秒
|
||||
public static final long SEVEN_DAY_TIME = 604800000;
|
||||
// public static final long SEVEN_DAY_TIME = 60000;
|
||||
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.mogo.utils.storage.SharedPrefsMgr
|
||||
*/
|
||||
object UploadHelper {
|
||||
fun upload(context: Context, type: TanluUploadParams, forcePlayVoice: Boolean = false) {
|
||||
if (DebugConfig.isLauncher()) {
|
||||
if (DebugConfig.isLauncher()) { //TODO launcher和独立应用
|
||||
if (ServiceApisManager.serviceApis.statusManagerApi.isUploading) {
|
||||
// 上报即成功,当前还有正在上报的事件,仅做界面展示,不做具体操作
|
||||
Logger.d("UploadHelper", "正在上报===")
|
||||
@@ -36,9 +36,7 @@ object UploadHelper {
|
||||
var intervalTime = SharedPrefsMgr.getInstance(context).getLong(KEY_CLICK_SHARE_ITEM_TIME, 0)
|
||||
Log.d("UploadHelper", "shareItemSum = $shareItemSum --- intervalTime = $intervalTime --type = ${type.eventType}")
|
||||
|
||||
if (shareItemSum > 2) {
|
||||
//TODO
|
||||
} else {
|
||||
if (shareItemSum < 3) {
|
||||
var time = System.currentTimeMillis()
|
||||
Log.d("UploadHelper", "time = $time ")
|
||||
if (intervalTime == 0.toLong()) {
|
||||
|
||||
@@ -4,7 +4,6 @@ import com.mogo.commons.data.BaseData
|
||||
import com.mogo.module.share.bean.AverateSpeedResponse
|
||||
import com.mogo.module.share.bean.ShareButtonConfigResponse
|
||||
import io.reactivex.Observable
|
||||
import io.reactivex.Single
|
||||
import okhttp3.RequestBody
|
||||
import retrofit2.http.*
|
||||
|
||||
@@ -32,4 +31,5 @@ interface ShareApiService {
|
||||
@FormUrlEncoded
|
||||
@POST("/deva/car/poiType/no/poiTypeList")
|
||||
fun queryShareButtonConfig(@FieldMap param: Map<String, String>):Observable<ShareButtonConfigResponse>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user