lib/reapal/api/money/deposit_query.rb in reapal-0.9.5 vs lib/reapal/api/money/deposit_query.rb in reapal-0.9.6
- old
+ new
@@ -25,10 +25,16 @@
params = {
orderNo: deposit_flow_id,
queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
}
- operate_post(:query, service, params, post_path, Http::ErrorCode.deposit_query, ['0000'])
+ res = operate_post(:query, service, params, post_path, Http::ErrorCode.deposit_query, ['0000'])
+
+ if 'S' == res[:result] && ('0001' || '0004') == res[:data][:resultCode]
+ res[:result] = 'F'
+ end
+
+ res
end
end # module
end
end