Prechádzať zdrojové kódy

user perfomance function

abiao 5 rokov pred
rodič
commit
37c2a73242

+ 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