mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#373 Add restart jobs, when steamgame update
This commit is contained in:
parent
750fd67d89
commit
ea6694d749
@ -66,6 +66,8 @@ if ($ui->st('w', 'get') == 'ms' and $ui->username('shorten', 50, 'get')) {
|
||||
$query2->execute(array($row['steamVersion'], $row['id']));
|
||||
}
|
||||
|
||||
if ($row['installing'] == 'Y' or $row['installing'] == null or $row['steamVersion'] > $row['localVersion'] or $row['steamVersion'] == null or $row['steamVersion'] == '') {
|
||||
|
||||
$query2 = $sql->prepare("SELECT `id`,`userid`,CONCAT(`serverip`,':',`port`) AS `name` FROM `gsswitch` WHERE `rootID`=? AND `autoRestart`='Y'");
|
||||
$query2->execute(array($row['id']));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
@ -79,8 +81,6 @@ if ($ui->st('w', 'get') == 'ms' and $ui->username('shorten', 50, 'get')) {
|
||||
$query2->execute(array($row['id'], $row['resellerid'], $row2['id'], $row2['userid'], $row2['name'], $row['resellerid']));
|
||||
}
|
||||
|
||||
if ($row['installing'] == 'Y' or $row['installing'] == null or $row['steamVersion'] > $row['localVersion'] or $row['steamVersion'] == null or $row['steamVersion'] == '') {
|
||||
|
||||
$query2 = $sql->prepare("SELECT `id` FROM `userdata` WHERE ((`resellerid`=? AND `accounttype`='a') OR (`id`=? AND `accounttype`='r')) AND `mail_gsupdate`='Y'");
|
||||
$query2->execute(array($row['resellerid'], $row['resellerid']));
|
||||
foreach ($query2->fetchAll(PDO::FETCH_ASSOC) as $row2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user