aoscici2000
V2EX  ›  微信

微信小程序有没有直接读取 cloud:开头文件方法

  •  
  •   aoscici2000 · Nov 5, 2019 · 3294 views
    This topic created in 2392 days ago, the information mentioned may be changed or developed.

    如题, 在小程序的云开发中, 比如我上传了一个 config.json 的文件, 地址是 cloud://path/config.json

    能不能用什么方法直接就能读取到, 现只会先 cloud.getTempFileURL 获取临时 url, 再发 wx.request 请求, 挺繁琐的..

    2 replies    2019-11-06 15:54:05 +08:00
    aoscici2000
        2
    aoscici2000  
    OP
       Nov 6, 2019
    @yexiaoxing 也是返回个临时 url 的, 貌似更多此一举
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5893 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 03:40 · PVG 11:40 · LAX 20:40 · JFK 23:40
    ♥ Do have faith in what you're doing.