From d025bdef3c4753ab6f6b67ff80857b3c234d44ed Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 4 Dec 2024 09:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=97=A5=E5=BF=97=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/models/OpLog.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/models/OpLog.php b/common/models/OpLog.php index b4ec2bb..6c8b845 100644 --- a/common/models/OpLog.php +++ b/common/models/OpLog.php @@ -11,9 +11,11 @@ class OpLog extends \common\modelsgii\OpLog { return [ [ - 'class' => TimestampBehavior::class, - 'attributes' => [ - ], +// 'class' => TimestampBehavior::class, +// 'attributes' => [ +// ActiveRecord::EVENT_BEFORE_INSERT => ['created_at','updated_at'], +// ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'], +// ], ], ]; }