lib/reapal/api/tender/tender_finish.rb in reapal-0.3.0 vs lib/reapal/api/tender/tender_finish.rb in reapal-0.9.0
- old
+ new
@@ -48,10 +48,15 @@
busway: busway,
remark: remark,
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
}
- operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_finish, ['0000'])
+ res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_finish, ['0000'])
+ if 'S' == res[:result] && '0001' == res[:data][:resultCode]
+ res[:result] = 'F'
+ end
+
+ res
end
end # module TenderFinish
end
end