Browse Source

调整nps用户调研接口,测试30分钟

pull/313/head
“xxq250” 3 years ago
parent
commit
c60e80da98
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/views/users/get_user_info.json.jbuilder

+ 2
- 1
app/views/users/get_user_info.json.jbuilder View File

@@ -27,4 +27,5 @@ json.(@user, :show_email, :show_department, :show_location, :show_super_descript
json.message_unread_total @message_unread_total
json.has_trace_user @user.trace_user.present?
json.is_new @user.login.present? && params[:login].to_s.include?("#{@user.login}")
json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", (Time.now - 30.days).beginning_of_day ).blank?
# json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", (Time.now - 30.days).beginning_of_day ).blank?
json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", Time.now - 30.minutes ).blank?

Loading…
Cancel
Save