32], [['title'], 'string', 'max' => 128], [['notify_class'], 'string', 'max' => 512], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'payment_order_union_id' => 'Payment Order Union ID', 'order_no' => 'Order No', 'amount' => 'Amount', 'is_pay' => '支付状态:0=未支付,1=已支付', 'pay_type' => '支付方式:1=微信支付,2=货到付款,3=余额支付,4=支付宝支付,5=百度支付,6=头条支付, 7微信H5支付,8支付宝H5支付,9.现金支付 10.pos机支付', 'title' => 'Title', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'notify_class' => 'Notify Class', 'refund' => '已退款金额', ]; } public function getOrder() { return $this->hasOne(Order::className(), ['order_no' => 'order_no']); } public function getReOrder() { return $this->hasOne(RechargeOrders::className(), ['order_no' => 'order_no']); } public function getPaymentOrderUnion() { return $this->hasOne(PaymentOrderUnion::className(), ['id' => 'payment_order_union_id']); } }