Git Product home page Git Product logo

Comments (10)

theorix avatar theorix commented on June 24, 2024 2

这个应该是文件过期了,现在聊天室文件30分钟后会过期

from lanying-im-web.

theorix avatar theorix commented on June 24, 2024

在Network里看下上面的文件请求的OPTIONS请求的服务器返回呢

from lanying-im-web.

spencer17x avatar spencer17x commented on June 24, 2024

image
image

from lanying-im-web.

spencer17x avatar spencer17x commented on June 24, 2024

image

from lanying-im-web.

theorix avatar theorix commented on June 24, 2024

改好了 @spencer17x

from lanying-im-web.

spencer17x avatar spencer17x commented on June 24, 2024

image
有些显示还是报403,
curl如下:
curl 'https://chat-file-chatroom-1-3.oss-cn-beijing.aliyuncs.com/chat_image_c26e892c-bceb-41eb-9a55-6d885eed5656?Expires=1630915562&OSSAccessKeyId=LTAI4FsWUXZx116ZTPtKv62D&Signature=GQlYpy1ML%2B0NRF9sjp82ztyjupk%3D&x-oss-traffic-limit=1638400'
-H 'Connection: keep-alive'
-H 'Pragma: no-cache'
-H 'Cache-Control: no-cache'
-H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
-H 'Accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8'
-H 'Sec-Fetch-Site: cross-site'
-H 'Sec-Fetch-Mode: no-cors'
-H 'Sec-Fetch-Dest: image'
-H 'Referer: http://localhost:3000/'
-H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8'
--compressed

from lanying-im-web.

spencer17x avatar spencer17x commented on June 24, 2024

应该不是过期的问题,我在你们提供的demo上运行是好的,自己的demo是有问题的。代码逻辑一致。 @theorix

from lanying-im-web.

spencer17x avatar spencer17x commented on June 24, 2024

image
@theorix

from lanying-im-web.

theorix avatar theorix commented on June 24, 2024

我们demo是好的,指的是我们的demo上登录后进入同一个聊天室可以看到那个文件吗。 看截图里的Expires: 1630988582 就表示过期时间是2021-09-07 12:23:02

from lanying-im-web.

spencer17x avatar spencer17x commented on June 24, 2024

@theorix 哦哦,好的,清楚了。

from lanying-im-web.

Related Issues (6)

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.