Commit 2cdcb365 authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent e974d479
...@@ -15,6 +15,7 @@ import com.downloader.PRDownloaderConfig; ...@@ -15,6 +15,7 @@ import com.downloader.PRDownloaderConfig;
import com.duben.miniplaylet.ad.TTAdManagerHolder; import com.duben.miniplaylet.ad.TTAdManagerHolder;
import com.duben.miniplaylet.common.Constant; import com.duben.miniplaylet.common.Constant;
import com.duben.miniplaylet.manager.MintsSign; import com.duben.miniplaylet.manager.MintsSign;
import com.duben.miniplaylet.manager.ShareSdkManager;
import com.duben.miniplaylet.manager.ShumeiManager; import com.duben.miniplaylet.manager.ShumeiManager;
import com.duben.miniplaylet.manager.TXCSDKService; import com.duben.miniplaylet.manager.TXCSDKService;
import com.duben.miniplaylet.manager.TalkingDataManager; import com.duben.miniplaylet.manager.TalkingDataManager;
...@@ -143,6 +144,8 @@ public class MintsApplication extends MultiDexApplication { ...@@ -143,6 +144,8 @@ public class MintsApplication extends MultiDexApplication {
//logger //logger
BindLogger(); BindLogger();
ShareSdkManager.INSTANCE.submitPolicyGrantResult();
// bugly // bugly
CrashReport.initCrashReport(this, "07da08daad", BuildConfig.DEBUG); CrashReport.initCrashReport(this, "07da08daad", BuildConfig.DEBUG);
} }
......
...@@ -37,7 +37,7 @@ class DrawCashPresenter : BasePresenter<DrawCashView>() { ...@@ -37,7 +37,7 @@ class DrawCashPresenter : BasePresenter<DrawCashView>() {
val message = baseResponse.message val message = baseResponse.message
when (code) { when (code) {
200 -> { 200 -> {
view.showToast("微信授权成功") view.wxMsgSuc()
} }
else -> view.showToast(message) else -> view.showToast(message)
} }
......
...@@ -5,4 +5,5 @@ import com.duben.miniplaylet.mvp.model.DrawInfoBean ...@@ -5,4 +5,5 @@ import com.duben.miniplaylet.mvp.model.DrawInfoBean
interface DrawCashView : BaseView { interface DrawCashView : BaseView {
fun getRedpkgSuc(data:DrawInfoBean) fun getRedpkgSuc(data:DrawInfoBean)
fun getYuanbaoSuc(data:DrawInfoBean) fun getYuanbaoSuc(data:DrawInfoBean)
fun wxMsgSuc()
} }
\ No newline at end of file
...@@ -156,6 +156,18 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView, ...@@ -156,6 +156,18 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
} }
} }
override fun wxMsgSuc() {
showToast("微信授权成功")
if (drawType == DRAW_TYPE_CASH) {
// 红包
drawCashPresenter.cashPageCoin()
} else {
// 元宝
drawCashPresenter.cashPageDi()
}
}
override fun onItemClick(position: Int) { override fun onItemClick(position: Int) {
currentDrawInfo = yuanbaoBean?.list?.get(position) currentDrawInfo = yuanbaoBean?.list?.get(position)
currentPosition = position currentPosition = position
......
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