From d1e17cd455c8acfb4e859ae9cfc14ffed2d86e4f Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 26 Jul 2019 17:05:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E7=9F=AD=E4=BF=A1=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/competitions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/competitions_controller.rb b/app/controllers/competitions_controller.rb index 028bab2d..24f02037 100644 --- a/app/controllers/competitions_controller.rb +++ b/app/controllers/competitions_controller.rb @@ -145,7 +145,7 @@ class CompetitionsController < ApplicationController section = stage.competition_stage_sections.reorder("start_time asc").first if section.present? && section.start_time.present? && section.start_time > Time.now User.where(:id => TeamMember.where(:competition_team_id => @competition.competition_teams.pluck(:id)).pluck(:user_id).uniq).each do |user| - name = @competition.name + "(#{stage.name})" + name = @competition.name + "#{@competition.sub_title}(#{stage.name})" begin if user.phone.present? status = Trustie::Sms.send(mobile: user.phone.to_s, code: '1', send_type:'competition_start', user_name:user.show_name, name:name, result:section.start_time.strftime('%Y-%m-%d %H:%M:%S'))