64], [['order_id', 'notify_url'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'id', 'order_id' => '订单id', 'wx_payment_id' => '微信支付单号', 'wx_refund_id' => '微信退款单号', 'mch_id' => '商户号', 'order_amount' => '订单金额', 'payment_amount' => '支付金额', 'notify_url' => '支付回调路径', 'type' => '类型', 'status' => '状态', 'refund_account' => '退款账户', 'updated_at' => '更新时间', 'created_at' => '创建时间', ]; } /** * @author linyao * @email 602604991@qq.com * @created Nov 8, 2019 * * 行为存储创建时间和更新时间 */ public function behaviors() { return [ [ 'class' => TimestampBehavior::className(), 'createdAtAttribute' => 'created_at', 'updatedAtAttribute' => 'updated_at', 'value' => function() { return time(); }, ], ]; } }