quanwei
2025-12-10 898043fc97d2ab8b793fd317a049b874ed207c6d
admin/app/common/model/plus/shareholder/Order.php
@@ -141,6 +141,7 @@
            'user_id' => $order['user_id'],
            'order_id' => $order['order_id'],
            'order_type' => $order_type,
            'total_price' => $capital['total_price'],
            'order_price' => $capital['orderPrice'],
            'is_settled' => 0,
            'shop_supplier_id' => $order['shop_supplier_id'],
@@ -159,7 +160,9 @@
        $setting = Setting::getItem('basic', $order['app_id']);
        $capital = [
            // 订单总金额(不含运费)
            'orderPrice' => bcsub($order['pay_price'], $order['express_price'], 2),
            'total_price' => bcsub($order['pay_price'], $order['express_price'], 2),
            // 订单总金额(不含运费) 减去 结算价 = 订单利润
            'orderPrice' => bcsub(bcsub($order['pay_price'], $order['express_price'], 2), $order['settlement_price'], 2),
            // 是否记录
            'is_record' => true
        ];