game 테이블을 모두 gameStor로 변환

This commit is contained in:
2018-05-20 03:43:02 +09:00
parent af9df325f0
commit 0516007130
28 changed files with 200 additions and 427 deletions
+2 -6
View File
@@ -21,9 +21,7 @@ function registerAuction() {
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select startyear,year,month,turnterm from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$admin = $gameStor->getValues(['startyear', 'year', 'month', 'turnterm']);
$unit = 60 * $admin['turnterm'];
@@ -155,9 +153,7 @@ function processAuction() {
$date = date("Y-m-d H:i:s");
$query = "select year,month from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$admin = MYDB_fetch_array($result);
$admin = $gameStor->getValues(['year', 'month']);
$query = "select * from auction where expire<='$date'";
$result2 = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");