-
Notifications
You must be signed in to change notification settings - Fork 10
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
refactor: url service #108
Conversation
印象里,FZUHelper.html会去请求FZUHelper.css才能呈现完整,这个应该没问题吧 |
有问题,还有这事 |
其实只要保证请求FZUHelper.css得到接口能正确访问就没问题 |
修一下ci和冲突 |
# Conflicts: # api/handler/api/url_service.go # api/model/api/api.go # cmd/api/main.go # config/config.example.yaml # config/types.go # go.mod # go.sum # pkg/constants/constants.go # pkg/errno/default.go
用 gpt 补几个测试吧,这样ci 不至于难看,而且后面也不用再补了,格式可以仿造其他的 test |
# Conflicts: # api/router/api/api.go # api/router/api/middleware.go # idl/api.thrift
感觉时间不是很够补完,我先去看数逻了 |
idl/api.thrift
Outdated
FZUHelperHTMLResponse FZUHelperHTML(1: FZUHelperHTMLRequest req) (api.get="/api/v1/url/onekey/fzu-helper.html") | ||
UserAgreementHTMLResponse UserAgreementHTML(1: UserAgreementHTMLRequest req) (api.get="/api/v1/url/onekey/user-agreement.html") | ||
service CommonService { | ||
GetCSSResponse GetCSS(1:GetCSSRequest req)(api.get="/api/v2/common/FZUHelper.css"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些静态资源的获取可以考虑成 /static 下面,然后文件的命名最好小写吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些现在都是直接请求upyun的,因为在容器里搞静态资源感觉并不是很优雅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有 url 最好不要出现大写
这个pr目前还有什么没做掉的吗? |
把模块名url 改成 version |
# Conflicts: # .gitignore # api/handler/api/url_service.go # cmd/api/main.go # config/config.example.yaml # config/config.go # config/types.go # pkg/constants/constants.go
一些问题:
下载apk重定向很慢
testSetting(/api/test)这个接口逻辑和get_setting基本一致
setcloud不能直接调试,因为格式是不正确的不能解析,apifox没有自动加换行符,我觉得不如传文件更好点