Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get current app name #241

Open
trim21 opened this issue Oct 20, 2022 · 2 comments
Open

get current app name #241

trim21 opened this issue Oct 20, 2022 · 2 comments
Labels
enhancement New feature request tier 4

Comments

@trim21
Copy link
Contributor

trim21 commented Oct 20, 2022

https://gist.github.com/Trim21/b930f98e000c7024b41de74f92d192aa#file-timeline-php-L668-L688

这里的获取用户端类型在重构版中有对应的函数吗

Originally posted by @TWT233 in #217 (comment)

@trim21
Copy link
Contributor Author

trim21 commented Oct 20, 2022

感觉可以考虑一下加一个x-app的HTTP header,维护一个预定义的列表,在列表里就作为应用名显示。

如果为空的话fallback到user agent,是浏览器就显示为web。

@trim21 trim21 added the enhancement New feature request label Oct 20, 2022
@trim21 trim21 added the tier 2 label Nov 3, 2022
@trim21 trim21 added tier 4 and removed tier 2 labels Jan 20, 2023
@everpcpc
Copy link
Contributor

现在的 api token 应该都有开发者平台对应的 app 的?是不是直接显示 app 名称就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request tier 4
Projects
None yet
Development

No branches or pull requests

2 participants