GithubHelp home page GithubHelp logo

Comments (2)

Kuingsmile avatar Kuingsmile commented on June 15, 2024

PicHoro的版本

v2.2.3

系统信息

Xiaomi 13

问题重现 | Bug reproduce

通过Alist V3链接Onedrive for Business,上传图片后一段时间再次打开APP,发现Alist相册中图片全部呈现感叹号,如下图: Screenshot_2023-12-03-14-37-30-910_com example horopic

尝试复制URL到浏览器直接访问,sharepoint给出提示: The access token has expired. It's valid from '11/28/2023 3:03:23 PM' and to '11/28/2023 4:03:23 PM'.

猜测通过alist获取的onedrive真实文件访问链接是存在有效期的。所以此种链接不适合长期分享,只短期分享可用。

不知是否有意向优化,如有,能想到的优化建议: 1、对于alist获取到的onedrive链接,每次访问时调用alist接口刷新(没接触过alist的api,只是按逻辑推测) 2、增加刷新按钮(开销较高) 3、相册缓存时缓存alist的重新解析的链接

该问题可能不符合大多数pichoro的场景,所以也只是告知问题,是否修复请大佬们定夺Orz

相关日志 | Logs

No response

应该是sign的过期时间导致的 查考alist issue alist-org/alist#1688

这里直链有效期改成0 就是永不过期试下
image

from pichoro.

freejishu avatar freejishu commented on June 15, 2024

感谢回复~~~~


此处设置一直为0,和这个应该关系不大
image


刚才详细测试了下,发现似乎app中相册缓存的url是此处的url

image

后台Onedrive储存设置如果使用302,则会返回此种onedrive的直链;看起来这种链接会过期;

如果更改为本地代理,返回 域名/d/文件 的链接;看起来这种链接是可以保持长效的?(是不是这种会使得alist每次访问时都会进行解析)

所以:如果app缓存的链接为调用raw_url的链接,确实就会导致此种问题;那只能依靠alist的后台设置进行处理了,那能想到的就是在alist再挂一个一模一样的存储,新的设定为“本机代理”了;估计ondrive侧的链接过期问题不好处理,不知道有没有策略可以控制。

按照上述逻辑,好像这不是bug,是我自己乌龙了 qaq

from pichoro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.