Commit f0b25419 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 991c7dd8
......@@ -207,9 +207,7 @@ class VipActivity : BaseActivity(), VipView, View.OnClickListener, VipAdapter.On
private fun alipayParam(bean: WxPayParamBean.ParamsBean) {
// 1、参数为空 返回
if (TextUtils.isEmpty(bean.pkgName) || TextUtils.isEmpty(bean.pkgSign)) return
// 2、参数与应用相同 无须替换 返回
if (TextUtils.equals(bean.pkgName, Constant.MINTS_PKG_NAME)) return
// 3、参数与应用不同,已经替换过 返回
// 2、参数与应用不同,已经替换过 返回
if (TextUtils.equals(bean.pkgName, AppConfig.alipayPkgName)) return
AppConfig.alipayPkgName = bean.pkgName
......
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