remove popen cmd
This commit is contained in:
parent
154aecfa14
commit
395126b098
|
@ -335,18 +335,18 @@ class PullRequestsController < ApplicationController
|
|||
pushTXInfo["shas"] = shas # 后续修改为shaList
|
||||
pushTXInfoJson = pushTXInfo.to_json
|
||||
# 发送交易
|
||||
Rails.logger.info("before executing chain_trustie command...")
|
||||
cmd = "chain_trustie pushPRTX " + pushTXInfoJson
|
||||
# result = system # 执行失败了
|
||||
output = StringIO.new
|
||||
IO.popen(cmd) do |pipe|
|
||||
pipe.each do |line|
|
||||
Rails.logger.info(line)
|
||||
end
|
||||
end
|
||||
Rails.logger.info(output.string)
|
||||
# Rails.logger.info(result)
|
||||
Rails.logger.info("after executing chain_trustie command...")
|
||||
# Rails.logger.info("before executing chain_trustie command...")
|
||||
# cmd = "chain_trustie pushPRTX " + pushTXInfoJson
|
||||
# # result = system # 执行失败了
|
||||
# output = StringIO.new
|
||||
# IO.popen(cmd) do |pipe|
|
||||
# pipe.each do |line|
|
||||
# Rails.logger.info(line)
|
||||
# end
|
||||
# end
|
||||
# Rails.logger.info(output.string)
|
||||
# # Rails.logger.info(result)
|
||||
# Rails.logger.info("after executing chain_trustie command...")
|
||||
# add by zxh end
|
||||
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Reference in New Issue