Commit 4505001d by ivan Lan

Remove the wrong payment validation

parent a01c190f
...@@ -64,9 +64,9 @@ module Shotengai ...@@ -64,9 +64,9 @@ module Shotengai
# event :soft_delete # event :soft_delete
end end
def before_pay # def before_pay
raise Shotengai::WebError.new('订单已过期 ,无法支付,请重新提交订单。', -1, 400) if cannot_pay # raise Shotengai::WebError.new('订单已过期 ,无法支付,请重新提交订单。', -1, 400) if cannot_pay
end # end
def cannot_pay def cannot_pay
Time.now > pay_deadline Time.now > pay_deadline
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment