'ID', 'new_attention' => '今日新关注', 'cancel_attention' => '今日取消关注', 'cumulate_attention' => '累计关注', 'date' => '日期', 'status' => 'Status', 'created_at' => '创建时间', 'updated_at' => '更新时间', ]; } /** * 行为 * @return array */ public function behaviors() { return [ [ 'class' => TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at'], ], ], [ 'class' => BlameableBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['merchant_id'], ], 'value' => Yii::$app->services->merchant->getId(), ] ]; } }