소스 검색

自动写入时间戳字段

afa 4 달 전
부모
커밋
4beb9733cf
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  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()