lib/reapal/api/tender/tender_onekey_invest.rb in reapal-0.11.0 vs lib/reapal/api/tender/tender_onekey_invest.rb in reapal-0.12.0
- old
+ new
@@ -28,11 +28,11 @@
# * :resultCode [String] 结果代码
#
def tender_onekey_invest(flow_id, tender_no, amount, coupon_amt,
invest_contracts, busway='01', remark='')
service = 'reapal.trust.onekeyInvest'
- post_path = '/reagw/tender/rest.htm'
+ post_path = '/tender/rest.htm'
params = {
orderNo: flow_id,
tenderNo: tender_no,
amount: amount,
@@ -41,10 +41,10 @@
busway: busway,
remark: remark,
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
}
- res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_onekey_invest, ['0000'], '3.0')
+ res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_onekey_invest, ['0000'])
if 'S' == res[:result] && '0001' == res[:data][:resultCode]
res[:result] = 'F'
end