You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
728 B
30 lines
728 B
<?php
|
|
$current_version = "1.0.0";
|
|
$key = $_REQUEST["key"];
|
|
$account = $_REQUEST["account"];
|
|
$pid = $_REQUEST["pid"];
|
|
$version = $_REQUEST["version"];
|
|
|
|
if (($key != NULL) and ($account != NULL) and ($pid != NULL)) {
|
|
if ($current_version != $version) {
|
|
#回覆結果
|
|
$response_result = array(
|
|
"result_code" => "0",
|
|
"latest_version" => $current_version,
|
|
"user_version" => $version,
|
|
"note" => "Need to be upgraded!"
|
|
);
|
|
save_log_response($key, $pid, $account, $current_version, $version, $response_result);
|
|
}
|
|
else {
|
|
$response_result = array(
|
|
"result_code" => "1",
|
|
"latest_version" => $current_version,
|
|
"note" => "None"
|
|
);
|
|
echo json_encode($response_result, JSON_UNESCAPED_UNICODE);
|
|
};
|
|
};
|
|
|
|
|
|
?>
|