EasyWeChat 6.x 请求怎么添加自定义参数? #2749
Answered
by
qianshi-tech
qianshi-tech
asked this question in
Q&A
-
项目新的要求对接微信虚拟支付接口,虽然我用办法解决了问题,感觉哪里不对劲,邀请大佬帮忙。 支付签名 我现在的解决方式是: $this->app->getClient()->postJson($url . "?pay_sig=" .self::vPaySig($url,$param) , param)->toArray(false); 。。。。看着好难受,于是我试过了以下的方法 $this->app->getClient()->postJson($url, array_merge(["pay_sig"=>self::vPaySig($url,$param)],$param))->toArray(false); $this->app->getClient()->with("pay_sig",self::vPaySig($url,$param))->postJson($url,$param)->toArray(false); $this->app->getClient()->postJson($url,array_merge(["pay_sig" => self::vPaySig($url,$param)],$param))->toArray(false); $this->app->getClient()->post($url,array_merge(["pay_sig"=>self::vPaySig($url,$param)],$param))->toArray(false); 都不行,我是不是理解错了文档, 为什么加不了自定义属性 |
Beta Was this translation helpful? Give feedback.
Answered by
qianshi-tech
Sep 20, 2023
Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
应该是这样吧