|
|
@@ -957,7 +957,7 @@ public class CommonUtil {
|
|
|
// 构造PayTask 对象
|
|
|
PayTask alipay = new PayTask(activity);
|
|
|
// 调用支付接口,获取支付结果
|
|
|
- final String result = alipay.pay(payInfo, true);
|
|
|
+ final Map<String, String> result = alipay.payV2(payInfo, true);
|
|
|
|
|
|
activity.runOnUiThread(new Runnable() {
|
|
|
|
|
|
@@ -1000,7 +1000,7 @@ public class CommonUtil {
|
|
|
public void subscribe(ObservableEmitter<String> emitter) throws Exception {
|
|
|
PayTask alipay = new PayTask(activity);
|
|
|
// 调用支付接口,获取支付结果
|
|
|
- String result = alipay.pay(payInfo, b);
|
|
|
+ Map<String, String> result = alipay.payV2(payInfo, b);
|
|
|
PayResult payResult = new PayResult(result);
|
|
|
/**
|
|
|
* 同步返回的结果必须放置到服务端进行验证(验证的规则请看https://doc.open.alipay.com/doc2/
|