공개페이지 접근 오류 수정 배포
This commit is contained in:
@@ -38,6 +38,6 @@ _flutter.buildConfig = {"engineRevision":"d2913632a4578ee4d0b8b1c4a69888c8a0672c
|
||||
|
||||
_flutter.loader.load({
|
||||
serviceWorkerSettings: {
|
||||
serviceWorkerVersion: "368247042"
|
||||
serviceWorkerVersion: "3344076004"
|
||||
}
|
||||
});
|
||||
|
||||
@@ -3,11 +3,11 @@ const MANIFEST = 'flutter-app-manifest';
|
||||
const TEMP = 'flutter-temp-cache';
|
||||
const CACHE_NAME = 'flutter-app-cache';
|
||||
|
||||
const RESOURCES = {"flutter_bootstrap.js": "4d0bd81a572b857bf68a64d19de57845",
|
||||
const RESOURCES = {"flutter_bootstrap.js": "f9ad02cc75652de49aa149c84a9cc507",
|
||||
"version.json": "da93f1b9f56cad7b2866130c73bc1e17",
|
||||
"index.html": "dbf5e70d5dc44d78d9e072817c5b3fa3",
|
||||
"/": "dbf5e70d5dc44d78d9e072817c5b3fa3",
|
||||
"main.dart.js": "2da98f273f6290c34b1efc7c7d51c4c7",
|
||||
"main.dart.js": "c4d26e5d741f827b49f1355fe96127d1",
|
||||
"flutter.js": "888483df48293866f9f41d3d9274a779",
|
||||
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
|
||||
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
|
||||
|
||||
+14505
-14504
File diff suppressed because one or more lines are too long
@@ -63,11 +63,18 @@ class PublicEventService {
|
||||
|
||||
Future<Map<String, dynamic>> fetchEvent(String publicHash) async {
|
||||
final saved = getSavedToken(publicHash);
|
||||
final res = await _http.get(
|
||||
// 백엔드는 GET이 아니라 POST('/:publicHash')로 최초 진입/토큰 인증을 처리함
|
||||
final res = await _http.post(
|
||||
'/public/' + publicHash,
|
||||
data: {},
|
||||
headers: _authHeader(saved),
|
||||
);
|
||||
final data = res.data as Map<String, dynamic>;
|
||||
// 응답에 token이 있으면 저장 (토큰 재발급 케이스)
|
||||
final token = data['token']?.toString();
|
||||
if (token != null && token.isNotEmpty) {
|
||||
saveToken(publicHash, token);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user