diff --git a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt index 7909e83a62..178dd150bb 100644 --- a/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt +++ b/libraries/tanlulib/src/main/java/com/zhidao/roadcondition/service/MainService.kt @@ -218,6 +218,16 @@ class MainService : Service() { // sendBroadcast(intent) } + private fun sendUgcStatusReceiver(id: String?, type: String?, fromType: String?) { + Log.e("MainService", "sendUgcStatusReceiver ----> id = $id ---type = $type --fromType = $fromType ") + var intent = Intent() + intent.action = "com.zhidao.roadcondition.marker.info" + intent.putExtra("id", id) + intent.putExtra("type", type) + intent.putExtra("fromType", fromType) + sendBroadcast(intent) + } + /** * 初始化定位监听 */ diff --git a/modules/mogo-module-v2x/src/main/AndroidManifest.xml b/modules/mogo-module-v2x/src/main/AndroidManifest.xml index 341e0485ae..10181ad5df 100644 --- a/modules/mogo-module-v2x/src/main/AndroidManifest.xml +++ b/modules/mogo-module-v2x/src/main/AndroidManifest.xml @@ -16,6 +16,14 @@ + + + + + + + + diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/receiver/UgcUploadStatusReceiver.kt b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/receiver/UgcUploadStatusReceiver.kt new file mode 100644 index 0000000000..e44b189c63 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/receiver/UgcUploadStatusReceiver.kt @@ -0,0 +1,20 @@ +package com.mogo.module.v2x.receiver + +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent + +/** + * ugc上报反馈 + */ +class UgcUploadStatusReceiver : BroadcastReceiver() { + override fun onReceive(context: Context, intent: Intent) { + if (intent.action == "com.v2x.ugc.upload.status"){ + var status = intent.getStringExtra("id") + var type = intent.getStringExtra("type") + var fromType = intent.getStringExtra("fromType") + + + } + } +} diff --git a/services/mogo-service-api/src/main/java/com/mogo/service/share/IMogoTanluProvider.java b/services/mogo-service-api/src/main/java/com/mogo/service/share/IMogoTanluProvider.java index 994e811744..0bdca2ecf1 100644 --- a/services/mogo-service-api/src/main/java/com/mogo/service/share/IMogoTanluProvider.java +++ b/services/mogo-service-api/src/main/java/com/mogo/service/share/IMogoTanluProvider.java @@ -71,6 +71,12 @@ public interface IMogoTanluProvider extends IProvider { */ String UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO = "5"; + /** + * 数据策略:UGC上报 + */ + String UPLOAD_FROM_STRATEGY_UGC = "6"; + + /** * 策略上报集合 */