Commit ace01f89 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 0e776743
...@@ -73,7 +73,7 @@ object BannerManager { ...@@ -73,7 +73,7 @@ object BannerManager {
if (bannerAd != null && bannerAd!!.mediationManager != null && bannerAd!!.mediationManager.showEcpm != null) { if (bannerAd != null && bannerAd!!.mediationManager != null && bannerAd!!.mediationManager.showEcpm != null) {
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["adType"] = Constant.GRO_MORE_ADTYPE3 vo["adType"] = Constant.GRO_MORE_ADTYPE3
vo["ecpm"] = bannerAd!!.mediationManager.showEcpm.ecpm vo["cpmFen"] = bannerAd!!.mediationManager.showEcpm.ecpm
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
......
...@@ -154,7 +154,7 @@ class DrawExpressManager { ...@@ -154,7 +154,7 @@ class DrawExpressManager {
val ecpm = it.mediationManager.showEcpm.ecpm val ecpm = it.mediationManager.showEcpm.ecpm
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["adType"] = Constant.GRO_MORE_ADTYPE4 vo["adType"] = Constant.GRO_MORE_ADTYPE4
vo["ecpm"] = ecpm vo["cpmFen"] = ecpm
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
if (it.mediationManager.isExpress) { if (it.mediationManager.isExpress) {
......
...@@ -147,7 +147,7 @@ class HomeDrawExpressManager { ...@@ -147,7 +147,7 @@ class HomeDrawExpressManager {
val ecpm = it.mediationManager.showEcpm.ecpm val ecpm = it.mediationManager.showEcpm.ecpm
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["adType"] = Constant.GRO_MORE_ADTYPE4 vo["adType"] = Constant.GRO_MORE_ADTYPE4
vo["ecpm"] = ecpm vo["cpmFen"] = ecpm
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
if (it.mediationManager.isExpress) { if (it.mediationManager.isExpress) {
......
...@@ -123,7 +123,7 @@ class ExpressManager { ...@@ -123,7 +123,7 @@ class ExpressManager {
val ecpm = it.mediationManager.showEcpm.ecpm val ecpm = it.mediationManager.showEcpm.ecpm
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["adType"] = Constant.GRO_MORE_ADTYPE1 vo["adType"] = Constant.GRO_MORE_ADTYPE1
vo["ecpm"] = ecpm vo["cpmFen"] = ecpm
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
if (it.mediationManager.isExpress) { if (it.mediationManager.isExpress) {
......
...@@ -83,7 +83,7 @@ class MainExpressManager { ...@@ -83,7 +83,7 @@ class MainExpressManager {
val ecpm = it.mediationManager.showEcpm.ecpm val ecpm = it.mediationManager.showEcpm.ecpm
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["adType"] = Constant.GRO_MORE_ADTYPE1 vo["adType"] = Constant.GRO_MORE_ADTYPE1
vo["ecpm"] = ecpm vo["cpmFen"] = ecpm
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
if (it.mediationManager.isExpress) { if (it.mediationManager.isExpress) {
......
...@@ -122,7 +122,7 @@ class MyExpressManager { ...@@ -122,7 +122,7 @@ class MyExpressManager {
val ecpm = it.mediationManager.showEcpm.ecpm val ecpm = it.mediationManager.showEcpm.ecpm
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["adType"] = Constant.GRO_MORE_ADTYPE1 vo["adType"] = Constant.GRO_MORE_ADTYPE1
vo["ecpm"] = ecpm vo["cpmFen"] = ecpm
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
if (it.mediationManager.isExpress) { if (it.mediationManager.isExpress) {
......
...@@ -165,7 +165,7 @@ object SplashManager { ...@@ -165,7 +165,7 @@ object SplashManager {
mTTSplashAd?.let { mTTSplashAd?.let {
if (it.mediationManager != null && it.mediationManager.showEcpm != null) { if (it.mediationManager != null && it.mediationManager.showEcpm != null) {
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["ecpm"] = it.mediationManager.showEcpm.ecpm vo["cpmFen"] = it.mediationManager.showEcpm.ecpm
vo["adType"] = Constant.GRO_MORE_ADTYPE0 vo["adType"] = Constant.GRO_MORE_ADTYPE0
TrackManager.getInstance().cmtEcpm(vo) TrackManager.getInstance().cmtEcpm(vo)
} }
......
...@@ -334,7 +334,7 @@ public interface LoanService { ...@@ -334,7 +334,7 @@ public interface LoanService {
* *
* @return * @return
*/ */
@POST("api/reporGromeEcpm") @POST("api/vedioV1/reportOpenAdEcpm")
Observable<BaseResponse<Object>> cmtEcpm(@Body Map<String, Object> vo); Observable<BaseResponse<Object>> cmtEcpm(@Body Map<String, Object> vo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment