hasMany(OrderSku::class, 'order_coding', 'coding')->whereNull('deleted_at'); } /** * 模型关联:下单会员 * @return HasOne */ public function account(): HasOne { return $this->hasOne(Account::class, 'id', 'account_id'); } /** * 订单状态描述 */ public static function statusTextList(): array { return [ self::STATUS_ORDER_PLACED => '已下单', self::STATUS_MAKEING => '制作中', self::STATUS_SHIPPED => '已发货', self::STATUS_ARRIVED => '已送达', self::STATUS_CANCEL => '已取消', ]; } }