Browse Source

Merge branch 'master' of http://git.huxiukeji.com/zhangxiaobin/ggyuyin

zhangxiaobin 1 năm trước cách đây
mục cha
commit
87c4bfa511
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      application/admin/model/gift/Gift.php

+ 4 - 0
application/admin/model/gift/Gift.php

@@ -36,6 +36,10 @@ class Gift extends Model
             //礼物价值=价格
             $row->value = $row->price;
         });
+        self::beforeUpdate(function ($row) {
+            //礼物价值=价格
+            $row->value = $row->price;
+        });
     }
     
     public function getIsBigList()