Commit 15758c97 authored by 李增强's avatar 李增强

Initial commit

parent bc4ce287
...@@ -7,6 +7,7 @@ import android.content.pm.PackageManager; ...@@ -7,6 +7,7 @@ import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo; import android.content.pm.ResolveInfo;
import android.net.Uri; import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.os.Looper;
import com.alipay.sdk.app.EnvUtils; import com.alipay.sdk.app.EnvUtils;
import com.alipay.sdk.app.PayTask; import com.alipay.sdk.app.PayTask;
...@@ -35,8 +36,14 @@ public class Handler { ...@@ -35,8 +36,14 @@ public class Handler {
EnvUtils.setEnv(EnvUtils.EnvEnum.ONLINE); EnvUtils.setEnv(EnvUtils.EnvEnum.ONLINE);
} }
PayTask alipay = new PayTask(mActivity); PayTask alipay = new PayTask(mActivity);
Map<String, String> map = alipay.payV2(order, true); final Map<String, String> map = alipay.payV2(order, true);
result.success(map); new android.os.Handler().post(new Runnable() {
@Override
public void run() {
result.success(map);
}
});
} }
}; };
......
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