Skip to content

Commit

Permalink
misc: update readme
Browse files Browse the repository at this point in the history
YuKongA committed Dec 8, 2024
1 parent 4845bbb commit 6d9b973
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,25 +3,24 @@
### 网址:
https://icon.yukonga.top

### 注意:
由于 Apple 目前限制了 Android UA 查询,只会返回一个名称完全符合的查询结果。

所以 Android 用户请使用隔壁仓库的 [App](https://github.com/YuKongA/HQ-ICON_Compose/releases) 版本。

### 使用:
完整例子https://icon.yukonga.top/?name=Google&country=us&entity=software&limit=18&cut=0&resolution=1024&format=webp
完整例子: https://icon.yukonga.top/?name=Google&country=us&entity=software&limit=18&cut=0&resolution=1024&format=webp

对照表:
### 对照表:
| url 传参 | 对应作用 | 默认值 |
| :--------: | :------------------------------: | :------: |
| name | 应用名称 ||
| country | 国家/地区cn,us,jp,kr... | cn |
| entity | 搜索对象software/macSoftware | software |
| limit | 搜索数量限额1..200 | 18 |
| cut | 是否裁切圆角0/1 | 1 |
| resolution | 分辨率256/512/1024 | 512 |
| format | 图片格式jpeg/png/webp | png |
| country | 国家/地区 (cn,us,jp,kr... ) | cn |
| entity | 搜索对象 (software/macSoftware ) | software |
| limit | 搜索数量限额 (1..200 ) | 18 |
| cut | 是否裁切圆角 (0/1 ) | 1 |
| resolution | 分辨率 (256/512/1024 ) | 512 |
| format | 图片格式 (jpeg/png/webp ) | png |

### 注意:
由于 Apple 目前限制了 Android UA 查询,只会返回一个名称完全符合的查询结果。

所以 Android 用户请使用隔壁仓库的 [App](https://github.com/YuKongA/HQ-ICON_Compose/releases) 版本。

### 致谢:
[React](https://react.dev/) /
2 changes: 1 addition & 1 deletion src/searchApp.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

export async function searchApp(term, country, entity, limit) {
const res = await axios.get(`https://app-store.yukonga.top/search?term=${encodeURI(term)}&country=${country}&entity=${entity}&limit=${limit}`);
const res = await axios.get(`https://itunes.apple.com/search?term=${encodeURI(term)}&country=${country}&entity=${entity}&limit=${limit}`);
return res.data;
}

0 comments on commit 6d9b973

Please sign in to comment.