From 6c53f561d8d48a95f979ef4bcbf275736330285e Mon Sep 17 00:00:00 2001 From: p31729568 Date: Wed, 8 May 2019 11:11:34 +0800 Subject: [PATCH] modify reject trial auth tiding content --- app/models/tiding.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tiding.rb b/app/models/tiding.rb index 7fc040f4..ec8c68d8 100644 --- a/app/models/tiding.rb +++ b/app/models/tiding.rb @@ -113,7 +113,7 @@ class Tiding < ActiveRecord::Base shixun_name = Subject.find(self.parent_container_id).name self.tiding_type == "System" ? ("你提交的实训课程发布申请:" + shixun_name + ",审核" + (self.status == 1 ? '已通过':('未通过' + "    " + '原因:' + container.try(:reason).to_s))) : ("申请发布实训课程:"+ shixun_name) when "TrialAuthorization" - self.tiding_type == "System" ? ("你提交的试用授权申请:审核" + (self.status == 1 ? '已通过':('未通过' + "    " + '原因:' + container.try(:reason).to_s))) : ("提交了试用授权申请") + self.tiding_type == "System" ? ("你提交的试用授权申请:审核" + (self.status == 1 ? '已通过':('未通过' + "    " + '原因:' + container.try(:reason).to_s + ';' + container.try(:reject_description).to_s))) : ("提交了试用授权申请") end when "Course", "Shixun","Subject" name = self.container_type == "Course" ? "课堂" : (self.container_type == "Shixun" ? "实训" :"实训课程")