From 61d3146ec6fa54914ee39239ea2d69c843678818 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 30 Mar 2020 20:48:25 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/managements/update_notice.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/managements/update_notice.html.erb b/app/views/managements/update_notice.html.erb index adbfc43b..e7e076cf 100644 --- a/app/views/managements/update_notice.html.erb +++ b/app/views/managements/update_notice.html.erb @@ -41,7 +41,7 @@ formatTime:'H:i', formatDate:'Y-m-d', validateOnBlur:false, - step:10 + step:1 }); $('#notice_end_time').datetimepicker({ allowBlank:true, @@ -50,7 +50,7 @@ formatTime:'H:i', formatDate:'Y-m-d', validateOnBlur:false, - step:10 + step:1 }); }); From d885ab1cc756102a3440ab71c6b4a93e37b32ab2 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 3 Apr 2020 12:22:39 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/account_controller.rb | 6 +++--- app/controllers/shixuns_controller.rb | 2 +- app/controllers/subjects_controller.rb | 2 +- app/services/libraries/submit_service.rb | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index c93796a0..667d6632 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -869,7 +869,7 @@ class AccountController < ApplicationController if ApplyUserAuthentication.where(:user_id => @user.id, :status => 0, :auth_type => 1).count == 0 ApplyUserAuthentication.create(:user_id => @user.id, :status => 0, :auth_type => 1) begin - status = Trustie::Sms.send(mobile: '18711085785', send_type:'apply_auth' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'apply_auth' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end @@ -928,7 +928,7 @@ class AccountController < ApplicationController if ApplyUserAuthentication.where(:user_id => @user.id, :status => 0, :auth_type => 2).count == 0 ApplyUserAuthentication.create(:user_id => @user.id, :status => 0, :auth_type => 2) begin - status = Trustie::Sms.send(mobile: '18711085785', send_type:'apply_pro_certification' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'apply_pro_certification' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end @@ -937,7 +937,7 @@ class AccountController < ApplicationController if File.exist?(diskfile2) ApplyUserAuthentication.create(:user_id => @user.id, :status => 0, :auth_type => 2) begin - status = Trustie::Sms.send(mobile: '18711085785', send_type:'apply_pro_certification' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'apply_pro_certification' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 7c248e92..cd29cb0e 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -569,7 +569,7 @@ class ShixunsController < ApplicationController else ApplyAction.create(:container_type => "ApplyShixun", :container_id => @shixun.id, :user_id => User.current.id, :status => 0) begin - status = Trustie::Sms.send(mobile: '18711011226', send_type:'publish_shixun' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'publish_shixun' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index 61e56f9a..80ee323c 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -207,7 +207,7 @@ class SubjectsController < ApplicationController # notes = User.current.show_name.to_s + " 申请发布课程实训:#{@subject.name}" # JournalsForMessage.create(:jour_id => 1, :jour_type => 'Principal', :user_id => User.current.id, :notes => notes, :private => 1, :reply_id => 0) begin - status = Trustie::Sms.send(mobile: '18711011226', send_type:'publish_subject' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'publish_subject' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end diff --git a/app/services/libraries/submit_service.rb b/app/services/libraries/submit_service.rb index 0beec7de..5e36f6ac 100644 --- a/app/services/libraries/submit_service.rb +++ b/app/services/libraries/submit_service.rb @@ -28,6 +28,6 @@ class Libraries::SubmitService Tiding.create!(user_id: 1, trigger_user_id: library.user_id, container_id: library.id, container_type: 'Library', tiding_type: 'Apply', status: 0) - Trustie::Sms.send(mobile: '18711011226', send_type:'publish_library' , name: '管理员') rescue nil + Trustie::Sms.send(mobile: '15388083362', send_type:'publish_library' , name: '管理员') rescue nil end end \ No newline at end of file From 7bf20c692fefd9f1bf38ab4f955611fb681c9a4d Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 23 Apr 2020 15:23:00 +0800 Subject: [PATCH 3/3] =?UTF-8?q?gitlab=E7=94=A8=E6=88=B7=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/trustie/gitlab/helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/trustie/gitlab/helper.rb b/lib/trustie/gitlab/helper.rb index 30249198..1da10044 100644 --- a/lib/trustie/gitlab/helper.rb +++ b/lib/trustie/gitlab/helper.rb @@ -28,6 +28,9 @@ module Trustie begin u = find_user(user) unless u.present? + if user.hashed_password.blank? + user.salt_password("edu12345678") + end u = self.g.create_user(user.mail, user.hashed_password, name: user.show_name, username: user.login, confirm: "true") Rails.logger.warn("create gitlab log ##user.mail is #{user.mail}, name is #{user.show_name}, u id is#{u.id}") user.gid = u.id