KVStorage의 game namespace를 game_env로 '편의를 위해' 변경

This commit is contained in:
2018-05-12 22:21:53 +09:00
parent 52f4b79fdf
commit 67ecd514a4
63 changed files with 194 additions and 194 deletions
+12 -12
View File
@@ -4,7 +4,7 @@ namespace sammo;
function processTournament() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select tournament,phase,tnmt_type,tnmt_auto,tnmt_time,now() as now,TIMESTAMPDIFF(SECOND,tnmt_time,now()) as offset from game limit 1";
@@ -111,7 +111,7 @@ function processTournament() {
function getTournamentTerm() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select tnmt_auto from game limit 1";
@@ -133,7 +133,7 @@ function getTournamentTerm() {
function getTournamentTime() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select tournament,tnmt_time from game limit 1";
@@ -234,7 +234,7 @@ function printFighting($tournament, $phase) {
function startTournament($auto, $type) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
eraseTnmtFightLogAll();
@@ -273,7 +273,7 @@ function startTournament($auto, $type) {
function fillLowGenAll() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$general = [];
@@ -381,7 +381,7 @@ function getTwo($tournament, $phase) {
function qualify($tnmt_type, $tnmt, $phase) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$cand = getTwo($tnmt, $phase);
@@ -422,7 +422,7 @@ function qualifyAll($tnmt_type, $tnmt, $phase) {
function selection($tnmt_type, $tnmt, $phase) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
//시드1 배정
@@ -472,7 +472,7 @@ function selectionAll($tnmt_type, $tnmt, $phase) {
function finallySingle($tnmt_type, $tnmt, $phase) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$cand = getTwo($tnmt, $phase);
@@ -513,7 +513,7 @@ function finallyAll($tnmt_type, $tnmt, $phase) {
function final16set() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
//1조1-5조2, 2조1-6조2, 3조1-7조2, 4조1-8조2, 5조1-1조2, 6조1-2조2, 7조1-3조2, 8조1-4조2
@@ -538,7 +538,7 @@ function final16set() {
function finalFight($tnmt_type, $tnmt, $phase, $type) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
switch($type) {
@@ -571,7 +571,7 @@ function finalFight($tnmt_type, $tnmt, $phase, $type) {
function setGift($tnmt_type, $tnmt, $phase) {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select year,month,develcost from game limit 1";
@@ -726,7 +726,7 @@ function setGift($tnmt_type, $tnmt, $phase) {
function setRefund() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$gameStor = KVStorage::getStorage($db, 'game_env');
$connect=$db->get();
$query = "select develcost from game limit 1";