Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问exec已废弃,具体如何使用 curl 代替? #147

Open
keel opened this issue Aug 19, 2024 · 3 comments
Open

请问exec已废弃,具体如何使用 curl 代替? #147

keel opened this issue Aug 19, 2024 · 3 comments

Comments

@keel
Copy link

keel commented Aug 19, 2024

有没有样例参考?试了几种写法,exec还是没办法用curl替代。

@fengmk2
Copy link
Member

fengmk2 commented Aug 19, 2024

请问你调用的接口是那些?

@keel
Copy link
Author

keel commented Sep 10, 2024

比如获取openId的接口

alipaySdk.exec('alipay.system.oauth.token',....)

或者这个:
alipaySdk.exec('alipay.user.gamecenter.addhomepage.consult', ...)

不清楚curl应该如何写

@keel
Copy link
Author

keel commented Jan 1, 2025

好像是部分接口仍然只支持exec,部分接口支持curl。

比如,扣减游戏币:
https://opendocs.alipay.com/mini-game/493f4520_alipay.user.gamecenter.coin.pay
这个接口,只能使用exec.

但是充值退款:
https://opendocs.alipay.com/mini-game/6fc63327_alipay.user.gamecenter.payment.refund
则可使用curl。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants