$session->userID 보다는 버그 확률이 낮은 Session::getUserID로 전환.

- 함수에서 $session->userID는 $session = Session::getInstance() 가 필요
This commit is contained in:
2018-04-06 17:30:26 +09:00
parent ceccb43f82
commit 2d477d630c
69 changed files with 256 additions and 215 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ namespace sammo;
include('lib.php');
$session = Session::requireGameLogin([])->setReadOnly();
$userID = $session->userID;
$generalID = $session->generalID;
$userID = Session::getUserID();
$rootDB = RootDB::db();
$db = DB::db();