|
|
|
@ -271,7 +271,11 @@ class MyshixunsController < ApplicationController
|
|
|
|
|
unless @hide_code || @myshixun.shixun&.vnc_evaluate
|
|
|
|
|
# 远程版本库文件内容
|
|
|
|
|
last_content = GitService.file_content(repo_path: @repo_path, path: path)["content"]
|
|
|
|
|
content = params[:content]
|
|
|
|
|
content = if @myshixun.mirror_name.select {|a| a.include?("MachineLearning") || a.include?("Python")}.present? && params[:content].present?
|
|
|
|
|
params[:content].gsub(/\t/, ' ')
|
|
|
|
|
else
|
|
|
|
|
params[:content]
|
|
|
|
|
end
|
|
|
|
|
Rails.logger.info("###11222333####{content}")
|
|
|
|
|
Rails.logger.info("###222333####{last_content}")
|
|
|
|
|
|
|
|
|
|