remove popen cmd

This commit is contained in:
nigel007 2019-07-22 14:23:49 +08:00
parent 154aecfa14
commit 395126b098
1 changed files with 12 additions and 12 deletions

View File

@ -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|