PublicRecord 함수 수정, json_encode, json_deocde를 Json로 통합

This commit is contained in:
2018-04-01 19:16:00 +09:00
parent 1f5f7e3591
commit 6ee8066c80
15 changed files with 47 additions and 38 deletions
+2 -2
View File
@@ -100,11 +100,11 @@ RootDB::db()->insert('member_log', [
'member_no'=>$userID,
'date'=>$nowDate,
'action_type'=>'change_pw',
'action'=>json_encode([
'action'=>Json::encode([
'type'=>'kakao',
'no'=>$userID,
'token'=>$access_token
], JSON_UNESCAPED_UNICODE)
])
]);
RootDB::db()->query("unlock tables");
+3 -3
View File
@@ -108,7 +108,7 @@ $kakaoID = Util::array_get($signupResult['id']);
if(!$kakaoID && Util::array_get($signupResult['msg'])!='already registered'){
Json::die([
'result'=>false,
'reason'=>'카카오 로그인 과정 중 앱 연결 절차를 실패했습니다'.json_encode($signupResult)
'reason'=>'카카오 로그인 과정 중 앱 연결 절차를 실패했습니다'.Json::encode($signupResult)
]);
}
@@ -158,11 +158,11 @@ RootDB::db()->insert('member_log', [
'member_no'=>$userID,
'date'=>$nowDate,
'action_type'=>'reg',
'action'=>json_encode([
'action'=>Json::encode([
'type'=>'kakao',
'id'=>$kakaoID,
'email'=>$email, 'name'=>$nickname
], JSON_UNESCAPED_UNICODE)
])
]);
Json::die([
+1 -1
View File
@@ -37,7 +37,7 @@ else{
die('알 수 없는 에러:'.$me['msg']);
}
$_SESSION['tmpx'] = json_encode($result,JSON_UNESCAPED_UNICODE);
$_SESSION['tmpx'] = Json::encode($result);
//echo "<br>\n";
$me = $restAPI->meWithEmail();