param; $user = $this->sessionUser->user(); if ($user instanceof null) { throw new LogicException(); } $deposit = $this->logic->charge($param->shopId, $param->amount); $res = [ "shop_id" => $deposit->shop_id, "deposit" => $deposit->deposit, ]; return $this->successResponse($res); } }