GithubHelp home page GithubHelp logo

jeffreysu / wxopen Goto Github PK

View Code? Open in Web Editor NEW
209.0 31.0 95.0 103.91 MB

微信小程序 C# SDK,Senparc.Weixin.WxOpen.dll

Home Page: https://weixin.senparc.com

License: Apache License 2.0

C# 80.14% JavaScript 19.86%

wxopen's Issues

关于这个小程序的samlpe问题

因为在websocket这个部分不是很熟悉,看官方例子中,把这个小程序使用web socket调用部分也写进去了,但是实际部署的时候却无法运行wss协议,请问能否指导下如何部署 :)

code转json的时候报错

var x = await SnsApi.JsCode2JsonAsync(appId, appSecret, code);
这个代码用了会报这个错误

Senparc.Weixin.Exceptions.ErrorJsonResultException: 微信请求发生错误!错误代码:41008,说明:missing code, hints: [ req_id: QRg6ha0910s172 ]

关于小程序案例中WebSocket连接问题

关闭服务后,点击按钮“WebSocket”还是会提示“WebSocket 连接成功!”
image

发送文字,调试器会打印错误信息。
Error: Cannot send data if the connection is not in the 'Connected' State.

请问您有没有计划对这块逻辑进行完善?

支付后获取用户 Unionid 接口没有传入open Id

[ApiBind(NeuChar.PlatformType.WeChat_MiniProgram, "WxAppApi.GetPaidUnionidAsync", true)]
public static async Task GetPaidUnionidAsync(string accessTokenOrAppId, string transaction_id, string mch_id = "", string out_trade_no = "", int timeOut = Config.TIME_OUT)
这个获取支付后获取用户 Unionid ,方法里面没有传入用户open Id,查询不出Unionid,提示缺少参数

WxAppApi.GetWxaCode接口实现未判断本地文件是否存在

[ApiBind(Senparc.NeuChar.PlatformType.WeChat_MiniProgram, "WxAppApi.GetWxaCode", true)] public static WxJsonResult GetWxaCode( string accessTokenOrAppId, string filePath, string path, int width = 430, bool auto_color = false, LineColor lineColor = null, bool isHyaline = false, int timeOut = 10000)
未判断filePath文件是否存在,直接调用删除,导致异常

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.