업데이트 서버 코드 추가

- VersionGit 양식 변경
- 서버 입구 버전 표기
- FileTail 추가
Vscode에서 che, kwe, pwe, twe 무시
This commit is contained in:
2018-04-01 20:12:22 +09:00
parent 6ee8066c80
commit 77ff1d9e9a
9 changed files with 117 additions and 15 deletions
+2 -5
View File
@@ -25,7 +25,7 @@ class Json{
return json_decode($value, true);
}
public static function die($value, $flag = NO_CACHE){
public static function die($value, $flag = self::NO_CACHE){
//NOTE: REST 형식에 맞게, ok(), fail()로 쪼개는게 낫지 않을까 생각해봄.
if($flag & static::NO_CACHE){
WebUtil::setHeaderNoCache();
@@ -33,9 +33,6 @@ class Json{
header('Content-Type: application/json');
echo Json::encode($value, $flag);
if($die){
die();
}
die(Json::encode($value, $flag));
}
}