-
Notifications
You must be signed in to change notification settings - Fork 102
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
normalize 格式化url path方法会格式化openid,导致请求接口微信不能正确获取openid #69
Labels
question
Further information is requested
Comments
感谢及时回复,大家有遇到类似的,可以查看 #56 |
例如,查询代金券详情,映射的PHP接口就形如: <?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
namespace WeChatPay\OpenAPI\V3\Marketing\Favor\Users\_openid_\Coupons;
use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;
/**
* 这是一个纯接口描述文件,由程序自动生成,旨在为IDE提供结构提示,无他用。
*/
interface _coupon_id_
{
/**
* 查询代金券详情(同步模式)
* @param array<string,mixed> $options
* @link https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_6.shtml
*/
public function get(array $options = [
'openid' => '',
'coupon_id' => '',
'query' => [
'appid' => '',
],
]): ResponseInterface;
/**
* 查询代金券详情(异步模式)
* @param array<string,mixed> $options
* @link https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_6.shtml#async
*/
public function getAsync(array $options = [
'openid' => '',
'coupon_id' => '',
'query' => [
'appid' => '',
],
]): PromiseInterface;
} 上述文件符合 如果用PHPStorm,建议在开发环境再安装 |
This was referenced Dec 22, 2021
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有的接口的path里是有 openid 的,openid 是有大小写的了,转换后就得到一个乱掉的openid了,
我请求的支付服务商->发放优惠券接口,微信会返回 PARAM_ERROR,appid和openid不匹配
如图
The text was updated successfully, but these errors were encountered: