Преглед на файлове

增加商品属性定义

abiao преди 5 години
родител
ревизия
ff650cad1b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/models/product.rb

+ 2 - 2
app/models/product.rb

@@ -43,7 +43,7 @@ class Product < ActiveRecord::Base
         if !linkSize.blank?
             return linkSize.name
         else
-            return "不存在"
+            return "-"
         end
     end
 
@@ -52,7 +52,7 @@ class Product < ActiveRecord::Base
         if !linkColor.blank?
             return linkColor.name
         else
-            return "不存在"
+            return "-"
         end
     end