Skip to content

Commit fe4f5a4

Browse files
authored
release: 1.8.2 (#197)
2 parents 8d66c84 + 90c925b commit fe4f5a4

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Merge persona level v2
2+
3+
펫의 레벨을 합칩니다.
4+
재물이 된 펫은 영구적으로 삭제되며 (복구 불가능)
5+
재물 펫이 갖고있는 레벨만큼 합성된 펫의 레벨이 증가합니다.
6+
ex. A펫, B펫이 있고, B펫이 재물일때, B펫의 레벨만큼 A펫 레벨이 증가함.
7+
8+
## Request
9+
### HTTP METHOD : `PUT`
10+
### url : `https://render.gitanimals.org/personas/merges`
11+
### RequestHeader
12+
- Authorization: `{token}`
13+
- Api-Version: 2
14+
### RequestBody
15+
``` json
16+
{
17+
"increasePersonaId": "1",
18+
"deletePersonaId": ["2", "3", "4", "5", "6", "7"] // 합성에 사용될 펫의 Id
19+
}
20+
```
21+
22+
## Response
23+
24+
200 OK
25+
26+
```json
27+
{
28+
"id": "12345", // increase된 pet의 id
29+
"type": "GOOSE", // persona의 type
30+
"level": "12345", // 상승된 펫의 id
31+
"visible": true, // farms에서 보이는여부
32+
"dropRate": "드롭될 확률"
33+
}
34+
```

src/main/kotlin/org/gitanimals/identity/controller/request/RedirectWhenSuccess.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ enum class RedirectWhenSuccess(
2222
),
2323
APP(
2424
"https://api.gitanimals.org/logins/oauth/github/tokens/APP",
25-
"gitanimals://auth?jwt={jwt}"
25+
"gitanimals://auth?jwt={jwt}",
2626
),
2727
WEB_VIEW(
2828
"https://api.gitanimals.org/logins/oauth/github/tokens/WEB_VIEW",
29-
"https://git-animal-client-webview.vercel.app/auth?jwt={jwt}"
30-
)
29+
"https://git-animal-client-webview.vercel.app/auth?jwt={jwt}",
30+
),
31+
DEV(
32+
"https://api.gitanimals.org/logins/oauth/github/tokens/DEV",
33+
"https://git-animal-client.vercel.app/auth/jwt={jwt}",
34+
),
3135
;
3236

3337
fun successUriWithToken(jwt: String): String = successUri.replace("{jwt}", jwt)

src/main/kotlin/org/gitanimals/quiz/domain/context/QuizSolveContextService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class QuizSolveContextService(
1919
category: Category,
2020
quizs: List<Quiz>,
2121
): QuizSolveContext {
22-
val now = LocalDate.ofInstant(instant(), ZoneId.of("UTC"))
22+
val now = LocalDate.ofInstant(instant(), ZoneId.of("Asia/Seoul"))
2323
quizSolveContextRepository.findQuizSolveContextByUserIdAndSolvedAt(userId, now)?.let {
2424
throw IllegalArgumentException("Already solve daily quiz.")
2525
}

0 commit comments

Comments
 (0)