zealot icon indicating copy to clipboard operation
zealot copied to clipboard

安卓渠道更新接口返回IOS安装地址

Open denymz opened this issue 1 year ago • 3 comments

部署方式 | How to Deploy

使用一键部署脚本 | Using zealot-docker on-click install (Default)

部署版本 | Version

nightly (Default)

反代服务 | Reverse Proxy

kong-2.8.1

已阅读文档 | Read the document

  • [X] 已阅读 | Yes

描述 | Description

使用Android channel key 请求/api/apps/latest 接口,返回的数据中install_url字段为 itms-services://?action=download-manifest&url=https://xxxxxxx/channels/jHtQn/releases/4/install 完整返回如下:

{ "app_name": "xxxx 产品版 Android", "bundle_id": "*", "git_url": null, "app": { "id": 2, "name": "xxxx" }, "scheme": { "id": 4, "name": "产品版" }, "releases": [ { "version": 2, "app_name": "xxxx 产品版 Android", "bundle_id": "com.xxxx.xxxx", "release_version": "1.0.1", "build_version": "2", "source": "web", "branch": "", "git_commit": "", "ci_url": "", "size": 28493843, "icon_url": "https://xxxxx/uploads/apps/a2/r4/icons/ic_launcher.png", "install_url": "itms-services://?action=download-manifest&url=https://xxxxxx/channels/jHtQn/releases/4/install", "changelog": [ { "message": "修复Bug" } ], "text_changelog": "- 修复Bug" } ] }

并且能够确定的是在zealot后台中该渠道的设备类型为Android,渠道唯一地址 jHtQn 也是与之匹配。 而且只上传过Android安装包,从未上传过IOS的安装包。 总结下来唯一的问题就是install_url返回错误数据。

因为对Ruby不熟悉,所以只能猜测是此处未获取到device_type。 https://github.com/tryzealot/zealot/blob/aa8da705b2cd9da9eb3b2d3fb06b6dae81f9679e/app/models/release.rb#L148

问题日志 | Relevant log output

No response

denymz avatar Jul 20 '22 02:07 denymz

感谢你提交的问题或反馈,我会在有时间的时候回复在此期间你可以看看之前被解决的反馈说不定有你需要的答案。 Thanks for opening this issue, a maintainer will get back to you shortly!

welcome[bot] avatar Jul 20 '22 02:07 welcome[bot]

问题找到了,感谢反馈。

icyleaf avatar Jul 20 '22 03:07 icyleaf

等待 https://github.com/tryzealot/zealot/runs/7422072889 执行成功后重新拉取 nightly 并部署

icyleaf avatar Jul 20 '22 03:07 icyleaf

由于太长时间没有得到回复本问题会自动被关闭,如果您还有问题可以重新开启或提交新问题。感谢你对于 Zealot 的关注! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 00:08 stale[bot]