Commit e02a597f66010f8561cc04fba445a04460069cd1
1 parent
29e1ea21
Exists in
master
formating code
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
lib/wx_pay/service.rb
... | ... | @@ -58,7 +58,7 @@ module WxPay |
58 | 58 | |
59 | 59 | r = invoke_remote("#{GATEWAY_URL}/secapi/pay/refund", make_payload(params), options) |
60 | 60 | |
61 | - yield(r) if block_given? | |
61 | + yield r if block_given? | |
62 | 62 | |
63 | 63 | r |
64 | 64 | end |
... | ... | @@ -104,7 +104,7 @@ module WxPay |
104 | 104 | |
105 | 105 | r = invoke_remote("#{GATEWAY_URL}/secapi/pay/reverse", make_payload(params), options) |
106 | 106 | |
107 | - yield(r) if block_given? | |
107 | + yield r if block_given? | |
108 | 108 | |
109 | 109 | r |
110 | 110 | end |
... | ... | @@ -127,7 +127,7 @@ module WxPay |
127 | 127 | |
128 | 128 | r = invoke_remote("#{GATEWAY_URL}/pay/micropay", make_payload(params), options) |
129 | 129 | |
130 | - yield(r) if block_given? | |
130 | + yield r if block_given? | |
131 | 131 | |
132 | 132 | r |
133 | 133 | end |
... | ... | @@ -144,7 +144,7 @@ module WxPay |
144 | 144 | |
145 | 145 | r = invoke_remote("#{GATEWAY_URL}/pay/orderquery", make_payload(params), options) |
146 | 146 | |
147 | - yield(r) if block_given? | |
147 | + yield r if block_given? | |
148 | 148 | |
149 | 149 | r |
150 | 150 | end | ... | ... |