diff --git a/app/helpers/wechats_helper.rb b/app/helpers/wechats_helper.rb index 34c4dd9a1..5c6b3da8c 100644 --- a/app/helpers/wechats_helper.rb +++ b/app/helpers/wechats_helper.rb @@ -3,9 +3,9 @@ module WechatsHelper def include_wechat_jsfile - # if Rails.env.production? - # javascript_include_tag '/javascripts/wechat/build/app.min.js' - # else + if Rails.env.production? + javascript_include_tag '/javascripts/wechat/build/app.min.js' + else wechat_path = File.join(Rails.root, "public", "javascripts", "wechat") srcs = Rails.application.config.wechat_srcs paths = [] @@ -15,6 +15,6 @@ module WechatsHelper end end javascript_include_tag *paths - # end + end end end diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html index 27f43f8c2..91aa58fcf 100644 --- a/public/assets/wechat/course_discussion.html +++ b/public/assets/wechat/course_discussion.html @@ -71,7 +71,7 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html index 3a4fc09db..35a2446f2 100644 --- a/public/assets/wechat/course_notice.html +++ b/public/assets/wechat/course_notice.html @@ -86,7 +86,7 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复
diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html index 9b5c7dc79..e5f73faa9 100644 --- a/public/assets/wechat/homework_detail.html +++ b/public/assets/wechat/homework_detail.html @@ -75,7 +75,7 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复
diff --git a/public/assets/wechat/issue_detail.html b/public/assets/wechat/issue_detail.html index 786e8cda3..f4eed4bd9 100644 --- a/public/assets/wechat/issue_detail.html +++ b/public/assets/wechat/issue_detail.html @@ -92,7 +92,7 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复
diff --git a/public/assets/wechat/jour_message_detail.html b/public/assets/wechat/jour_message_detail.html index 98e082448..a1db224a6 100644 --- a/public/assets/wechat/jour_message_detail.html +++ b/public/assets/wechat/jour_message_detail.html @@ -70,7 +70,7 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复
diff --git a/public/assets/wechat/project_discussion.html b/public/assets/wechat/project_discussion.html index c8509ff50..dcb5a68a6 100644 --- a/public/assets/wechat/project_discussion.html +++ b/public/assets/wechat/project_discussion.html @@ -71,7 +71,7 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复