autoloader 구성.

class 정의
This commit is contained in:
2018-03-24 18:13:03 +09:00
parent 3363b547d5
commit 462bafe806
185 changed files with 570 additions and 225 deletions
+4 -4
View File
@@ -7,14 +7,14 @@ $generalID = getGeneralID();
session_write_close();
if(!$userID){
returnJson([
Json::die([
'result'=>false,
'reason'=>'로그인되지 않았습니다.'
]);
}
if(!$generalID){
returnJson([
Json::die([
'result'=>false,
'reason'=>'장수를 생성하지 않았습니다.'
]);
@@ -26,7 +26,7 @@ $db = getDB();
$image = $rootDB->queryFirstRow('SELECT picture, imgsvr FROM `MEMBER` WHERE no = %i', $userID);
if(!$image){
returnJson([
Json::die([
'result'=>false,
'reason'=>'회원 기록 정보가 없습니다'
]);
@@ -37,7 +37,7 @@ $db->update('general', [
'imgsvr'=>$image['imgsvr']
], 'owner = %i and npc = 0', $userID);
returnJson([
Json::die([
'result'=>true,
'reason'=>'success'
]);