Sfoglia il codice sorgente

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

zhangxiaobin 1 anno fa
parent
commit
87c4bfa511
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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()