TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public static function tableName() { return '{{%queue_log}}'; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'user_id','order_id','goods_id','sort', 'is_pay', 'created_at', 'updated_at','num','queue_id','is_send','send_time','is_meet'], 'integer'], [['returned_money','total_money','goods_price','rate','cashback_bili', 'self_bili', 'share_bili', 'integral'], 'number'], [['goods_name'], 'string'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'sort' => '排序:升序', 'user_id' => '用户id', 'order_id' => '订单id', 'goods_id' => '商品id', 'is_pay' => '是否支付', 'returned_money' => '已返金额', 'total_money' => '总金额', ]; } }