activemerchant_patch_for_china icon indicating copy to clipboard operation
activemerchant_patch_for_china copied to clipboard

Alipay::Notification 解析参数时,没有用CGI.unescape解码, 导致日期参数丢失时间部分

Open edwardzhou opened this issue 13 years ago • 1 comments

ActiveMerchant::Billing::Integrations::Alipay::Notification # Take the posted data and move the relevant data into a hash def parse(post) @raw = post for line in post.split('&') key, value = line.scan( %r{^(\w+)=(.)$} ).flatten params[key] = value end end

应该改为跟 activemerchant的Notification一样。 *params[key] = CGI.unescape(value || '') *

对比过 activemerchant 的Notification.parse 发现其实Alipay::Notification.parse 完全可以删除掉。

edwardzhou avatar Jul 18 '11 09:07 edwardzhou

请fork,然后提交一个pull request给我吧

flyerhzm avatar Jul 18 '11 11:07 flyerhzm