支付宝原生支付bug fix(不能在UI线程请求)

This commit is contained in:
huangjian
2021-03-01 16:40:46 +08:00
parent ff06564224
commit 5d937cadd0
2 changed files with 2 additions and 2 deletions

View File

@@ -366,6 +366,7 @@ public class PaymentActivity extends Activity
}
}
})
.compose(RxHelper.handleSchedulers())
.subscribe((stringStringMap, throwable) -> {
if (throwable == null) {
AliPayResult aliPayResult = new AliPayResult(stringStringMap);

View File

@@ -55,8 +55,7 @@ public class AliPayModel extends BaseModel implements IAliPayModel {
chargeProdId,
Constants.CHARGE_ALIPAY,
NetworkUtils.getIPAddress(context),
AuthModel.get().getTicket())
.compose(RxHelper.handleSchedulers());
AuthModel.get().getTicket());
}