KevinWG / OSS.Clients.Pay

开源支付SDK(标准库),主要打造微信支付,支付宝支付,标准库项目,同时支持.net framework和.net core
http://www.osscore.com
Apache License 2.0
330 stars 124 forks source link

fix bug in generating string to compute sign. #9

Closed shamork closed 7 years ago

shamork commented 7 years ago

fix bug in generating string to compute sign. An empty string in collection leads to "&&" after string.Join("&",strings[]). it should be "xx&xx". So use Where to filter invalid item. use StringBuilder may be a bit faster, more complicate though.