add ugc upload

This commit is contained in:
lixiaopeng
2020-10-21 11:45:15 +08:00
parent 619ad60f18
commit 084da50100
4 changed files with 44 additions and 0 deletions

View File

@@ -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)
}
/**
* 初始化定位监听
*/

View File

@@ -16,6 +16,14 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<!--ugc上报状态反馈广播-->
<receiver android:name=".receiver.UgcUploadStatusReceiver">
<intent-filter>
<action android:name="com.v2x.ugc.upload.status" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
</application>
</manifest>

View File

@@ -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")
}
}
}

View File

@@ -71,6 +71,12 @@ public interface IMogoTanluProvider extends IProvider {
*/
String UPLOAD_FROM_STRATEGY_ACCIDENT_AUTO = "5";
/**
* 数据策略:UGC上报
*/
String UPLOAD_FROM_STRATEGY_UGC = "6";
/**
* 策略上报集合
*/