Commit ba60f4aa authored by mengcuiguang's avatar mengcuiguang

代码优化

parent cb2ffa05
...@@ -158,7 +158,7 @@ public class MintsApplication extends MultiDexApplication { ...@@ -158,7 +158,7 @@ public class MintsApplication extends MultiDexApplication {
// 自定义logger // 自定义logger
bindLogger(); bindLogger();
// YyzManager.INSTANCE.initYyz(this); YyzManager.INSTANCE.initYyz(this);
......
...@@ -221,21 +221,17 @@ class HomePresenter : BasePresenter<HomeView>() { ...@@ -221,21 +221,17 @@ class HomePresenter : BasePresenter<HomeView>() {
* 公众号弹框参数传递 * 公众号弹框参数传递
*/ */
fun setWechatTipsStatus(status: Int) { fun setWechatTipsStatus(status: Int) {
LogUtil.d("GzhPresenter", "setWechatTipsStatus*******************************************")
val vo = HashMap<String, Any>() val vo = HashMap<String, Any>()
vo["status"] = status vo["status"] = status
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.setWechatTipsStatus(vo), .call(loanService.setWechatTipsStatus(vo),
object : BaseSubscriber<BaseResponse<Any>>() { object : BaseSubscriber<BaseResponse<Any>>() {
override fun onCompleted() { override fun onCompleted() {
LogUtil.d("GzhPresenter", "********************onCompleted**********************")
if (isLinkView) return if (isLinkView) return
} }
override fun onError(e: Throwable) { override fun onError(e: Throwable) {
LogUtil.d("GzhPresenter", "********************onError**********************${e.printStackTrace()}")
e.printStackTrace().toString()
if (isLinkView) return if (isLinkView) return
} }
...@@ -245,13 +241,9 @@ class HomePresenter : BasePresenter<HomeView>() { ...@@ -245,13 +241,9 @@ class HomePresenter : BasePresenter<HomeView>() {
val message: String = baseResponse.getMessage() val message: String = baseResponse.getMessage()
when (code) { when (code) {
200 -> { 200 -> {
//请求成功后可以在这里响应请求
LogUtil.d("GzhPresenter", "********************成功了**********************")
} }
else -> { else -> {
view.showToast(message) view.showToast(message)
//请求成功后可以在这里响应请求
LogUtil.d("GzhPresenter", "*********************不成功*********************")
} }
} }
} }
......
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