quanwei
7 days ago 30563323a53b0d0260c97d08a9e8bd4cc8227a95
admin/app/common/model/plus/bonus/Order.php
@@ -190,7 +190,7 @@
    public static function getUserOrderCount($user_id)
    {
        return (new static())->where('second_user_id', '=', $user_id)
        return (new static())->where(['second_user_id'=>$user_id,'is_invalid'=>0])
            ->count();
    }
@@ -236,7 +236,7 @@
            'order_id' => $order['order_id'],
            'order_type' => $order_type,
            'order_price' => bcsub($order['pay_price'], $order['express_price'], 2),
            'first_money' => $agentUser['first_user_id'] > 0 ? $one_money : 0,
            'first_money' =>  $one_money,
            'second_money' =>  $two_money,
            'first_user_id' => $one_money > 0 ?$agentUser['first_user_id']:0,
            'second_user_id' => $agentUser['second_user_id'],