Explorar el Código

add live awards function

abiao hace 5 años
padre
commit
720cd5c1da

+ 1 - 0
config/locales/models/live_award.yml

@@ -6,6 +6,7 @@ zh-CN:
       live_award:
         openid: openid
         wx_user_id: 会员ID
+        wx_user: 微信会员
         remark: 事由
         room_id: 直播房间号
         prod1: 赠品1ID

+ 1 - 1
db/migrate/20210118116666_create_live_awards.rb

@@ -30,7 +30,7 @@ class CreateLiveAwards < ActiveRecord::Migration
       #收货地址
       t.column :address, :string,:limit => 256
       # 发放状态
-      t.column :is_more, :boolean, :default=>1
+      t.column :status, :boolean, :default=>1
       t.timestamps
     end
     add_index :live_awards, :wx_user_id