Browse Source

自动写入时间戳字段

afa 4 tháng trước cách đây
mục cha
commit
4beb9733cf
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      app/common/model/ShopDelivery.php

+ 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()