hxp
2025-06-09 6c3f6335c70859ded94a1ad8d218acb0ac34239c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
include_once '/Common/CommFunc.php';
include_once '/Common/Logging.php';
include_once "/db/DBOper.php";
 
header("Content-type: text/html; charset=utf-8");
 
\Logging\CreateLogging("centerapi.checkuser.php");
\Logging\LogInfo("_GET:" . print_r($_GET, true));
$tokenkey = $_GET["tokenkey"];
$channel = $_GET["channel"];
$guid = $_GET["guid"];
 
if (!$tokenkey || !$channel || !$guid) {
    echo "ParamError";
    exit;
}
 
if (!\DBOper\FindOne("UserToken", array("Channel" => $channel, "UserGuid" => $guid), $ret, null, true)) {
    echo "DBError";
    exit;
}
 
if (isset($ret) && $ret["Tokenkey"] == $tokenkey) {
    echo "OK";
    exit;
}
echo "NotFound";