255], [['desc', 'refuse_desc'], 'string', 'max' => 500], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'user_id' => 'User ID', 'order_id' => 'Order ID', 'order_detail_id' => 'Order Detail ID', 'order_refund_no' => '退款单号', 'type' => '售后类型:1=退货退款,2=换货', 'refund_price' => '退款金额', 'desc' => '退款说明', 'pic_list' => '凭证图片列表:json格式', 'status' => '状态:0=待商家处理,1=同意并已退款,2=已同意换货,3=已拒绝退换货', 'refuse_desc' => '拒绝退换货原因', 'addtime' => 'Addtime', 'is_delete' => 'Is Delete', 'response_time' => '商家处理时间', ]; } public function getGoods() { return $this->hasOne(PtGoods::className(), ['id' => 'goods_id'])->alias('g') ->viaTable(PtOrderDetail::tableName() . ' od', ['id' => 'order_detail_id']); } }