model = $model; } /** * 获取用户的押金订单 * @param $user_id * @return mixed * User: Mead */ public function byUserIdGetUserDepositOrder($user_id) { return $this->model->where('user_id', $user_id)->where('pay_status', DepositOrder::PAY_STATUS_OK)->where('is_refund', DepositOrder::REFUND_NO)->first(); } }