TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['centralize_goods_id', 'main_goods_pic', 'other_goods_pic', 'back_md_pic', 'mobile', 'name', 'address', 'goods_num_info'], 'string'], [['id', 'refund_type', 'md_id', 'store_id', 'status', 'province_id', 'city_id', 'district_id', 'refund_id', 'is_confirm_goods', 'driver_id', 'goods_num'], 'integer'], [['longitude', 'latitude', 'updated_at', 'created_at', 'confirm_time'], 'number'] ]; } public function attributeLabels() { return [ 'id' => '', 'centralize_goods_id' => '商品信息ID', 'refund_type' => '退货类型:1上门收货 2退回门店', 'md_id' => '', 'store_id' => '', 'longitude' => '经度', 'latitude' => '纬度', 'name' => '退款人名称', 'mobile' => '退款人手机号', 'province_id' => '', 'city_id' => '', 'district_id' => '', 'goods_num_info' => '应收商品数量信息', 'status' => '状态:0未取 1确认取货 2取货失败', 'main_goods_pic' => '高价值照片', 'other_goods_pic' => '其他取回商品照片', 'back_md_pic' => '送回门店照片', 'confirm_time' => '确认取货时间', 'created_at' => '', 'updated_at' => '', ]; } }