KVStorage로 game 테이블 대체 준비

This commit is contained in:
2018-05-12 22:05:44 +09:00
parent 5e74a34d3e
commit 52f4b79fdf
65 changed files with 243 additions and 20 deletions
+3
View File
@@ -8,6 +8,7 @@ namespace sammo;
//1월마다 실행
function processSpring() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$connect=$db->get();
//인구 증가
@@ -369,6 +370,7 @@ function processFall() {
function processRiceIncome() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$connect=$db->get();
$query = "select year,month,rice_rate from game limit 1";
@@ -570,6 +572,7 @@ function tradeRate() {
function disaster() {
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game');
$connect=$db->get();
$query = "select startyear,year,month from game limit 1";