Skip to content

Commit

Permalink
fix: 规范genshin/index返回数据
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHeart committed Oct 29, 2022
1 parent 8f2e640 commit 341a4d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
override: true
target: x86_64-unknown-linux-musl
- uses: actions-rs/cargo@v1
env:
OPENSSL_DIR: /usr/local
with:
use-cross: true
command: build
Expand Down
2 changes: 1 addition & 1 deletion src/routes/genshin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn index(cookies: &CookieJar<'_>, uid: &str, server: Option<&str>) -> Value
if code != 0 {
return result::error(data.get("message").unwrap().as_str().unwrap());
}
result::success(Some(data))
result::success(Some(data.get("data")))
}
Err(_) => result::error("无法获取角色信息!"),
}
Expand Down

0 comments on commit 341a4d7

Please sign in to comment.