Эх сурвалжийг харах

自动写入时间戳字段

afa 4 сар өмнө
parent
commit
4beb9733cf

+ 0 - 6
app/common/model/ShopDelivery.php

@@ -21,12 +21,6 @@ class ShopDelivery Extends Model
     const StatusSettlement = 2;
     const StatusRefund = 3;
 
-    public static function onAfterInsert($data)
-    {
-        $data->weigh=1000-$data->id;
-        $data->save();
-    }
-
 
     //待结算金额
     public static function getPendingSettlementAmount()