Commit 01027762 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent fcad0507
...@@ -204,22 +204,20 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView, ...@@ -204,22 +204,20 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
if (TextUtils.equals(payChannel, WEIXIN_PAY)) { if (TextUtils.equals(payChannel, WEIXIN_PAY)) {
// 微信授权 // 微信授权
// if (TextUtils.isEmpty(UserManager.getInstance().wxOpenid)) { if (TextUtils.isEmpty(UserManager.getInstance().wxOpenid)) {
// val wechat = ShareSDK.getPlatform(Wechat.NAME) val wechat = ShareSDK.getPlatform(Wechat.NAME)
// if (!wechat.isClientValid) { if (!wechat.isClientValid) {
// showToast("请先安装微信") showToast("请先安装微信")
// return
// }
//
// showToast("微信拉起授权")
// loginApi.setOnLoginListener(this)
// loginApi.setPlatform(Wechat.NAME)
// loginApi.login(requireActivity())
// }
return return
} }
showToast("微信拉起授权")
loginApi.setOnLoginListener(this)
loginApi.setPlatform(Wechat.NAME)
loginApi.login(requireActivity())
return
}
}else if (TextUtils.equals(payChannel, ALIPAY)){
// 2、授权支付宝 // 2、授权支付宝
if (!alipayStatus) { if (!alipayStatus) {
// 去授权 // 去授权
...@@ -237,6 +235,9 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView, ...@@ -237,6 +235,9 @@ class DrawCashFragment : LazyLoadBaseFragment(), OnLoginListener, DrawCashView,
}) })
return return
} }
}
if (it.isNeedSeeVedioBeforeCashout) { if (it.isNeedSeeVedioBeforeCashout) {
//票 //票
......
...@@ -33,13 +33,13 @@ RELEASE_STORE_FILE=mints_miniplaylet.jks ...@@ -33,13 +33,13 @@ RELEASE_STORE_FILE=mints_miniplaylet.jks
SM_APP_ID="miniplaylet" SM_APP_ID="miniplaylet"
#ShareSDK #ShareSDK
RELEASE_SHARESDK_KEY=3845c0fde1969 RELEASE_SHARESDK_KEY=38af1ca206650
RELEASE_SHARESDK_SECRET=8e1f2a0e4b0ec6ec8404edfabe0cdf61 RELEASE_SHARESDK_SECRET=140df5a0ae19e6dfee30eb793c043d3f
#weixin #weixin
WEIXIN_APP_PAY_ID ="wx7e946f66585ca00a" WEIXIN_APP_PAY_ID ="wx8d69898f9fb291e6"
WEIXIN_APP_ID =wx7e946f66585ca00a WEIXIN_APP_ID =wx8d69898f9fb291e6
WEIXIN_APP_SECRET =6fe41783e736bea36504b271cea484f1 WEIXIN_APP_SECRET =ad6245d18872ed53a33c0f71418f6cde
#TalkingData #TalkingData
RELEASE_TALKING_DATA_KEY="452F8D546AF34E4ABE7A4A0336CF694B" RELEASE_TALKING_DATA_KEY="452F8D546AF34E4ABE7A4A0336CF694B"
......
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