我已申请成为Home&下面显示的启动器应用程序,当我将我的应用程序设置为默认启动器时,它将不会从谷歌播放自动更新,所有其他应用程序自动更新正常但只有一个应用程序不更新
<?php
$cookie_name = "loggedin";
$servername = "localhost";
$username = "root";
$password = "";
$database = "scholarcaps";
$conn = mysqli_connect($servername, $username, $password, $database);
if (!$conn) {
die("Database connection failed: ".mysqli_connect_error());
}
if (isset($_POST['login']))
{
$user = $_POST['username'];
$pass = $_POST['password'];
$phash = sha1(sha1($pass."salt")."salt");
$sql = "SELECT * FROM users WHERE username='$user' AND password='$phash';";
$result = mysqli_query($conn, $sql);
$count = mysqli_num_rows($result);
if ($count == 1)
{
$cookie_value = $user;
setcookie($cookie_name, $cookie_value, time() + (180), "/");
header("Location: personal.php");
}
else
{
echo "Username or password is incorrect!";
}
}
else if (isset($_POST['register']))
{
$user = $_POST['username'];
$email = $_POST['email'];
$pass = $_POST['password'];
$phash = sha1(sha1($pass."salt")."salt");
$sql = "INSERT INTO users (id, email, username, password) VALUES ('','$email', '$user', '$phash');";
$result = mysqli_query($conn, $sql);
}
?>
答案 0 :(得分:0)
Google Play不会更新当前正在运行的应用。我猜测用户不喜欢他们正在使用的应用重启。
答案 1 :(得分:-1)
&#39;自动更新&#39;功能来自Android Play商店本身,应用程序与它无关。用户可以随时从Play商店设置覆盖它,不允许应用程序自动更新。