Giter VIP home page Giter VIP logo

Comments (6)

fudiwei avatar fudiwei commented on July 3, 2024

《高级技巧:使用拦截器》

P.S. 最简单的方式其实是用 Fiddler 或者 Charles 抓个包……

from dotnetcore.skit.flurlhttpclient.wechat.

Lingweiy avatar Lingweiy commented on July 3, 2024

好的,感谢大佬,我试试

from dotnetcore.skit.flurlhttpclient.wechat.

Lingweiy avatar Lingweiy commented on July 3, 2024

我调用查询证书方法ExecuteQueryCertificatesAsync返回错误的签名,
image
这是new httpclient的方法:
1715135783441
这是调用的地方:
image
请问是哪里写错了吗?

from dotnetcore.skit.flurlhttpclient.wechat.

Lingweiy avatar Lingweiy commented on July 3, 2024

我确定我的参数没问题,使用postman可以请求通,但使用sdk就返回签名错误

from dotnetcore.skit.flurlhttpclient.wechat.

fudiwei avatar fudiwei commented on July 3, 2024

只能是 MerchantId、MerchantCertificateSerialNumber、MerchantCertficatePrivateKey 这三个参数有问题,比如混用了不同商户号的证书之类的。再仔细检查检查吧,代码里断点看看传进来的是啥。

实在找不出来你可以在微信商户后台重新申请一张新的证书。

from dotnetcore.skit.flurlhttpclient.wechat.

Lingweiy avatar Lingweiy commented on July 3, 2024

破案了,私钥文件弄错了!不知道咋回事没覆盖了,感谢大佬~

from dotnetcore.skit.flurlhttpclient.wechat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.