diff --git a/app/controllers/project_packages_controller.rb b/app/controllers/project_packages_controller.rb
index de896c920..3cc7e79cb 100644
--- a/app/controllers/project_packages_controller.rb
+++ b/app/controllers/project_packages_controller.rb
@@ -1,7 +1,7 @@
class ProjectPackagesController < ApplicationController
include PaginateHelper
- before_action :require_login, :check_auth, only: %i[create update destroy]
+ before_action :require_login, :check_auth, only: %i[show create update destroy]
helper_method :current_package, :package_manageable?
diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb
index fca143623..913013442 100644
--- a/app/controllers/shixuns_controller.rb
+++ b/app/controllers/shixuns_controller.rb
@@ -406,9 +406,10 @@ class ShixunsController < ApplicationController
end
end
@shixun.update_attributes(shixun_params)
+ logger.info("##########shixun_info_params: #{shixun_info_params}")
+ logger.info("##########params[:shixun_info][:evaluate_script]: #{params[:shixun_info][:evaluate_script]}")
@shixun.shixun_info.update_attributes(shixun_info_params)
@shixun.shixun_schools.delete_all
- logger.info("##########scope_partment:###{params[:scope_partment]}")
# scope_partment: 高校的名称
if params[:scope_partment].present?
arr = []
diff --git a/app/controllers/tidings_controller.rb b/app/controllers/tidings_controller.rb
index 795010b3f..9324b2755 100644
--- a/app/controllers/tidings_controller.rb
+++ b/app/controllers/tidings_controller.rb
@@ -1,6 +1,7 @@
class TidingsController < ApplicationController
include PaginateHelper
+ before_action :require_login
after_action :update_onclick_time!, only: [:index]
def index
diff --git a/app/views/games/picture_display.json.jbuilder b/app/views/games/picture_display.json.jbuilder
index 2bc88fdf4..838cfeda0 100644
--- a/app/views/games/picture_display.json.jbuilder
+++ b/app/views/games/picture_display.json.jbuilder
@@ -25,28 +25,33 @@ elsif @type == "txt"
elsif @type =="qrcode"
json.qrcode_str @qrcode_str
elsif @type == "mp3" || @type == "mp4"
- if @type == "mp4"
- json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378171/123.mp4"}]
- json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172/456.mp4"}]
- json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378173/789.mp4"}]
- else
- json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378174/58099.mp3"}]
- json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
- json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
- end
- # json.orignal_file do
- # json.array! @orignal_picture do |file|
- # json.file_url attachment_show_users_path(:file_name => file, :path => @original_path)
- # end
+ # if @type == "mp4"
+ # json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378171/123.mp4"}]
+ # json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172/456.mp4"}]
+ # json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378173/789.mp4"}]
+ # else
+ # json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378174/58099.mp3"}]
+ # json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
+ # json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
# end
+ json.orignal_file do
+ json.array! @orignal_picture do |file|
+ json.file_url attachment_show_users_path(:file_name => file, :path => @original_path)
+ end
+ end
# json.user_file do
# json.array! @user_picture do |file|
# json.file_url attachment_show_users_path(:file_name => file, :path => @user_path, :time => Time.now.to_i)
# end
# end
- # json.answer_file do
- # json.array! @answer_picture do |file|
- # json.file_url attachment_show_users_path(:file_name => file, :path => @answer_path)
- # end
- # end
+ if @type == "mp4"
+ json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172/456.mp4"}]
+ else
+ json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
+ end
+ json.answer_file do
+ json.array! @answer_picture do |file|
+ json.file_url attachment_show_users_path(:file_name => file, :path => @answer_path)
+ end
+ end
end
\ No newline at end of file
diff --git a/app/views/libraries/show.json.jbuilder b/app/views/libraries/show.json.jbuilder
index a5181b548..fd20d7bf2 100644
--- a/app/views/libraries/show.json.jbuilder
+++ b/app/views/libraries/show.json.jbuilder
@@ -38,7 +38,7 @@ json.operation do
json.can_deletable manageable
json.can_editable manageable
- json.user_praised PraiseTread.exists?(user_id: current_user&.id)
+ json.user_praised library.praise_treads.exists?(user_id: current_user&.id)
else
json.can_deletable false
json.can_editable false
diff --git a/app/views/tidings/_tiding.json.jbuilder b/app/views/tidings/_tiding.json.jbuilder
index cdaa48299..4a392edfd 100644
--- a/app/views/tidings/_tiding.json.jbuilder
+++ b/app/views/tidings/_tiding.json.jbuilder
@@ -1,4 +1,5 @@
-json.extract! tiding, :id, :status, :viewed, :user_id, :tiding_type, :container_id, :container_type, :parent_container_id, :parent_container_type
+json.extract! tiding, :id, :status, :viewed, :user_id, :tiding_type, :container_id, :container_type,
+ :parent_container_id, :parent_container_type, :belong_container_id, :belong_container_type
json.content tiding.content
json.identifier tiding.identifier
diff --git a/public/react/public/css/edu-all.css b/public/react/public/css/edu-all.css
index 458a93324..48b102ce3 100644
--- a/public/react/public/css/edu-all.css
+++ b/public/react/public/css/edu-all.css
@@ -577,7 +577,7 @@ p .activity-item:first-child{border-top: 1px solid #eee;}
.recently_name{float: left;line-height: 48px;display: block}
.recently_item:hover{background-color: #F9F9F9;}
/*私信对话框*/
-.private-list{min-height: 660px;max-height: 831px;overflow-y: auto}
+.private-list{min-height: 660px;max-height: 831px;overflow-y: auto;overflow-x: hidden;}
.private-list .private-part{padding-left:20px;cursor: pointer}
.private-part:hover{background-color: #F5F5F5;}
.private-part.active{background-color: #F5F5F5;}
diff --git a/public/react/src/common/components/media/Clappr.js b/public/react/src/common/components/media/Clappr.js
index 2c4d89e92..312ea9007 100644
--- a/public/react/src/common/components/media/Clappr.js
+++ b/public/react/src/common/components/media/Clappr.js
@@ -90,12 +90,19 @@ class Clappr extends Component{
- +
{item.name}