添加探路api接口实现

This commit is contained in:
tongchenfei
2020-08-10 14:39:15 +08:00
parent ee53d50cdb
commit ec50a12a6c
23 changed files with 207 additions and 23 deletions

View File

@@ -23,12 +23,13 @@ object UploadHelper {
AIAssist.getInstance(context).speakTTSVoice("感谢分享,正在上传")
}
Logger.d("UploadHelper", "upload ----> $type")
val intent = Intent()
intent.action = "com.zhidao.share.roadcondition.action"
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES)
intent.putExtra("type", type)
context.sendBroadcast(intent)
ServiceApisManager.serviceApis.tanluApi.uploadRoadCondition(type)
// val intent = Intent()
// intent.action = "com.zhidao.share.roadcondition.action"
// intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
// intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES)
// intent.putExtra("type", type)
// context.sendBroadcast(intent)
}
}
}