| | |
| | | |
| | | 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(); |
| | | } |
| | | |
| | |
| | | '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'], |