abiao %!s(int64=3) %!d(string=hai) anos
pai
achega
703b26de56
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      lib/rails_admin/generate_order_sheet.rb

+ 4 - 0
lib/rails_admin/generate_order_sheet.rb

@@ -23,6 +23,10 @@ module RailsAdmin
                 Proc.new do
                 Proc.new do
                     require 'rest-client'
                     require 'rest-client'
                     order_sheet = OrderFile.where("id = ? ",@object.id).first
                     order_sheet = OrderFile.where("id = ? ",@object.id).first
+
+                    url = "#{CONFIG_FILE["app_host"]}/railsadmin/order/generate_file/#{@object.id}"
+                    print url
+
                     n = "生成成功"
                     n = "生成成功"
                     if !order_sheet.blank?
                     if !order_sheet.blank?
                         n = "已成功生成"
                         n = "已成功生成"