-
Notifications
You must be signed in to change notification settings - Fork 74
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
好像不兼容webman之类的常驻内存的框架 #3
Labels
compatibility
Compatibility of equipment, environment and language
Comments
感谢反馈,我在 Webman 中测试了现金支付,可以正常返回回调地址,如图所示: function getCurrentUrl()
{
if ($opt && isset($opt['webman']) && isset($opt['webman']['request'])) {
$request = $opt['webman']['request'];
return 'http' . ($request->getLocalPort() === 443 ? 's' : '') . ':' . $request->fullUrl();
}
} 在 Webman 下,它可以像这样使用: namespace app\controller;
use support\Request;
class Index
{
public function index(Request $request)
{
$currentUrl = getCurrentUrl(array(
'webman' => array('request' => $request)
));
// Then new \Mantoufan\AliPayGlobal ……
}
} |
mantoufan
added
the
compatibility
Compatibility of equipment, environment and language
label
Aug 25, 2022
感谢回答,在支付这里是没问题的,支付成功后,异步回调里因为大量使用了$_SERVER,所以导致抛出异常,我现在是直接使用跳过方法直接使用SignatureTool:verify进行验证的,如果要是用插件里集成的$alipayGlobal->getNotify()该如何进行兼容呢? |
Hi, 我们更改了 0.0.3 版便于您直接传参: composer remove mantoufan/alipay-global-sdk-php // 先移除
composer require mantoufan/alipay-global-sdk-php // 再重新安装
$notify = $alipayGlobal->getNotify(array(
'httpMethod' => $request->method(),
'path' => $request->uri(),
'clientId' => $request->header('client-id'),
'rsqTime' => $request->header('request-time'),
'rsqBody' => $request->rawBody(),
'signature' => $request->header('signature')
));
$notifyResponseWithRSA = $notify->getNotifyResponseWithRSA();
response($notifyResponseWithRSA['body'], 200, $notifyResponseWithRSA['headers']); |
好的,感谢 |
Hi, 您可以在调用 |
1 similar comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
好像不兼容webman之类的常驻内存的框架
The text was updated successfully, but these errors were encountered: