Kaynağa Gözat

user perfomance function

abiao 5 yıl önce
ebeveyn
işleme
37c2a73242
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      lib/rails_admin/generate_user_perfomance.rb

+ 2 - 2
lib/rails_admin/generate_user_perfomance.rb

@@ -22,9 +22,9 @@ module RailsAdmin
             register_instance_option :controller do
                 Proc.new do
                     require 'rest-client'
-                    order_static = OrderStatic.where("id = ? ",@object.id).first
+                    user_perfomance = UserPerfomance.where("id = ? ",@object.id).first
                     n = "统计成功"
-                    if not order_static.blank?
+                    if not user_perfomance.blank?
                         n = "已成功统计"
                         url = "#{CONFIG_FILE["api_host"]}/railsadmin/user/perfomance/#{@object.id}"
                         begin