Commit 0de83ac1 authored by mengcuiguang's avatar mengcuiguang

优化广告接口调用

parent 48c73fdc
...@@ -2,6 +2,7 @@ package com.duben.dayplaylet.ad.video; ...@@ -2,6 +2,7 @@ package com.duben.dayplaylet.ad.video;
import android.app.Activity; import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.text.TextUtils;
import com.bytedance.sdk.openadsdk.AdSlot; import com.bytedance.sdk.openadsdk.AdSlot;
import com.bytedance.sdk.openadsdk.TTAdConstant; import com.bytedance.sdk.openadsdk.TTAdConstant;
...@@ -218,11 +219,15 @@ public class InMoneyVideo { ...@@ -218,11 +219,15 @@ public class InMoneyVideo {
if (AppConfig.taskListId != -1) { if (AppConfig.taskListId != -1) {
vo.put("list_id", AppConfig.taskListId); vo.put("list_id", AppConfig.taskListId);
} }
if (!TextUtils.equals(Constant.CARRIERTYPE_VEDIO_UNLOCK, carrierType) ||
!TextUtils.equals(Constant.CARRIERTYPE_VEDIO, carrierType)) {
TrackManager.getInstance().reportAddCoinMsg(vo); TrackManager.getInstance().reportAddCoinMsg(vo);
}
if (adStatusListener != null) { if (adStatusListener != null) {
adStatusListener.adClose(vo); adStatusListener.adClose(vo);
} }
adStatusListener = null; adStatusListener = null;
} }
......
...@@ -2,6 +2,7 @@ package com.duben.dayplaylet.ad.video; ...@@ -2,6 +2,7 @@ package com.duben.dayplaylet.ad.video;
import android.app.Activity; import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;
import android.text.TextUtils;
import com.bytedance.sdk.openadsdk.AdSlot; import com.bytedance.sdk.openadsdk.AdSlot;
import com.bytedance.sdk.openadsdk.TTAdConstant; import com.bytedance.sdk.openadsdk.TTAdConstant;
...@@ -157,7 +158,12 @@ public class InMoneyVideoNoPre { ...@@ -157,7 +158,12 @@ public class InMoneyVideoNoPre {
if (AppConfig.taskListId != -1) { if (AppConfig.taskListId != -1) {
vo.put("list_id", AppConfig.taskListId); vo.put("list_id", AppConfig.taskListId);
} }
if (!TextUtils.equals(Constant.CARRIERTYPE_VEDIO_UNLOCK, carrierType) ||
!TextUtils.equals(Constant.CARRIERTYPE_VEDIO, carrierType)) {
TrackManager.getInstance().reportAddCoinMsg(vo); TrackManager.getInstance().reportAddCoinMsg(vo);
}
if (adStatusListener != null) { if (adStatusListener != null) {
adStatusListener.adClose(vo); adStatusListener.adClose(vo);
......
...@@ -122,7 +122,7 @@ public interface LoanService { ...@@ -122,7 +122,7 @@ public interface LoanService {
* *
* @return * @return
*/ */
@POST("api/vedio/feedback") @POST("api/user/feedback")
Observable<BaseResponse<Object>> feedback(@Body Map<String, Object> vo); Observable<BaseResponse<Object>> feedback(@Body Map<String, Object> vo);
/** /**
......
...@@ -5,6 +5,6 @@ ...@@ -5,6 +5,6 @@
<solid android:color="@color/color_FDE7CF" /> <solid android:color="@color/color_FDE7CF" />
<!-- 设置按钮的四个角为弧形 --> <!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 --> <!-- android:radius 弧形的半径 -->
<corners android:radius="20dp" /> <corners android:radius="15dp" />
</shape> </shape>
\ No newline at end of file
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:layout_marginEnd="12dp"
android:background="@drawable/shape_withdraw" android:background="@drawable/shape_withdraw"
android:paddingLeft="6dp" android:paddingLeft="6dp"
android:paddingTop="12dp" android:paddingTop="12dp"
...@@ -52,14 +50,12 @@ ...@@ -52,14 +50,12 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp" android:layout_marginTop="20dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="20dp"/>
android:padding="@dimen/dp_10" />
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="14dp"
android:text="提现方式:" android:text="提现方式:"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="16sp" android:textSize="16sp"
...@@ -69,8 +65,8 @@ ...@@ -69,8 +65,8 @@
android:id="@+id/rg_draw" android:id="@+id/rg_draw"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:layout_marginTop="10dp"
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -96,10 +92,10 @@ ...@@ -96,10 +92,10 @@
<RelativeLayout <RelativeLayout
android:id="@+id/btn_draw" android:id="@+id/btn_draw"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="56dp"
android:layout_marginStart="15dp" android:layout_marginStart="5dp"
android:layout_marginTop="12dp" android:layout_marginTop="12dp"
android:layout_marginEnd="15dp" android:layout_marginEnd="5dp"
android:layout_marginBottom="12dp" android:layout_marginBottom="12dp"
android:background="@drawable/shape_withdraw_header"> android:background="@drawable/shape_withdraw_header">
...@@ -120,7 +116,7 @@ ...@@ -120,7 +116,7 @@
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:text="去提现" android:text="去提现"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="@dimen/font_size_16" /> android:textSize="18sp" />
</RelativeLayout> </RelativeLayout>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root_view" android:id="@+id/root_view"
android:layout_width="100dp" android:layout_width="104dp"
android:layout_height="50dp" android:layout_height="54dp"
android:layout_marginEnd="6dp" android:layout_marginEnd="4dp"
android:layout_marginLeft="4dp"
android:background="@drawable/shape_draw_adapter_none"> android:background="@drawable/shape_draw_adapter_none">
<TextView <TextView
......
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