James ZHANG

Results 13 comments of James ZHANG

[Java零注入 DUBBO+SWAGGER纯前端集成方案](https://github.com/TheNorthMemory/dubbo-swagger),只要会写OAS2,就能消费服务

As of the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash) described, the `window.location.hash` returns a [DOMString](https://developer.mozilla.org/en-US/docs/Web/API/DOMString) containing a '#' followed by the fragment identifier of the URL. Some of the i18n fragments, eg: the tag...

@gaoyia 做这个lib的时候,node15还没出,最低支持node10.15是为了「微信云开发」,他们给的云环境node版本太低了,高级方法暂时用不了;ts有计划做,还在学习ing

> 我做了一个关于微信api 支付的npm 包,大佬能帮我看看吗 npm url: https://www.npmjs.com/package/wechatpay-node-v3 github url :https://github.com/klover2/wechatpay-node-v3-ts 我做开源的目的是为了保持学习,把这个过程的成果贡献出来籍此帮助有需要的人。 你的这款 NPM包 [wechatpay-node-v3-ts](https://www.npmjs.com/package/wechatpay-node-v3) 能解决支付对接问题,就是优秀的,保持多样性,提供更多选择,应该值得肯定。 如果需要给提些建议的话,建议在 **主动请求返回值验签** 上加强一下,目前版本`1.3.0`貌似看着没有,这个其实有安全隐患;Node15 已经原生支持 `X509` 功能,依赖项也可以缩减;`async/await` 用得有些多,消弱了`异步编程`的魅力,建议可以加强优化一下;

依赖包,大部分都是`英文`的,文档咱就用中文吧

刚看到提醒,抱歉。 楼主批评得对,这用法上基本都是单一场景,要么加密,要么解密,俩揉在一起是有点过度设计了,而且容易造成干扰。。。

新包设计上,加/解密用法是: - `WeChatPay\Crypto\Rsa::encrypt(string $plaintext, $publicKey)` - `WeChatPay\Crypto\Rsa::decrypt(string $ciphertext, $privateKey)` 环境要求 `^PHP7.2.5 || ^8.0` -> https://github.com/wechatpay-apiv3/wechatpay-php

the code can be found [here](https://github.com/TheNorthMemory/WXBizMsgCrypt/blob/feature/use-original-resty_aes/lib/resty/aes_pad.lua), hopes that may help you.

Hi there, another choice via [here](https://docs.github.com/en/actions/using-jobs/setting-default-values-for-jobs) > Use `defaults` to create a `map` of default settings that will apply to all jobs in the workflow. Placed the following `yml` for...

@as882301 当你阅读了,[为 wechatpay-php 增加IDE提示的接口描述包 iwechatpay/openapi 介绍](https://developers.weixin.qq.com/community/develop/article/doc/000a0ce867842092f8cc65e5356013),以及正确的使用了`composer`及成熟`IDE`,你会发现`demo`纯粹是多余的。 > 在 `PHPStorm` 及 `Visual Studio Code` 可正常链上几乎所有接口,请求参数描述也可以无脑式,从对应的方法中直接拷贝出去(没有任何方言的完整数据结构),当自有项目的数据接口参照。