Parcourir la source

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

zhangxiaobin il y a 1 an
Parent
commit
87c4bfa511
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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()