<?php


namespace App\Http\Controllers\Api;


use App\Services\StoredProcedure;
use Illuminate\Http\Request;

class QueryVersionNewController
{
    public function index(Request $request)
    {
        $CurVersion = (int)$request->CurVersion;
        $UserID = (int)$request->UserID;
        $Channel = (int)$request->Channel;
        $ChannelIdx = (int)$request->ChannelIdx;
        $VersionCode = (int)$request->VersionCode;
        $UserVPN = (int)$request->UserVPN;
        $LocalIP = (int)$request->LocalIP;
        $LocalTime = (int)$request->LocalTime;
        $PackageName = (string)$request->PackageName;

        $res = StoredProcedure::QueryVersionNew($CurVersion, $UserID, $Channel, $ChannelIdx, $VersionCode, $UserVPN, $LocalIP, $LocalTime, $PackageName);

        return apiReturnSuc($res);
    }
}
