GithubHelp home page GithubHelp logo

Comments (10)

atian25 avatar atian25 commented on April 28, 2024

提交到你的 GitHub 仓库,给在线地址,不要给 ZIP 包。
另外,你的 ZIP 包里面的代码是空的

from egg.

atian25 avatar atian25 commented on April 28, 2024

另外,这里好像有一些封装好的:https://npms.io/search?q=qiniu

from egg.

A-birdFlyHigner avatar A-birdFlyHigner commented on April 28, 2024

提交到你的 GitHub 仓库,给在线地址,不要给 ZIP 包。 另外,你的 ZIP 包里面的代码是空的

提交了一下
https://github.com/A-birdFlyHigner/test-egg

from egg.

A-birdFlyHigner avatar A-birdFlyHigner commented on April 28, 2024

另外,这里好像有一些封装好的:https://npms.io/search?q=qiniu

库我试了两个了,都是类似的问题

from egg.

atian25 avatar atian25 commented on April 28, 2024

https://github.com/A-birdFlyHigner/test-egg

你再确认下,真的有么?

image

from egg.

A-birdFlyHigner avatar A-birdFlyHigner commented on April 28, 2024

https://github.com/A-birdFlyHigner/test-egg

你再确认下,真的有么?

image
不好意思,我重新提交了一下

from egg.

atian25 avatar atian25 commented on April 28, 2024

要 await 吧。这种查询不可能是同步的。

这个其实跟 egg 没啥关系了,就是 qiniu 的 sdk 是 callback 的,如何包成 promise。

from egg.

A-birdFlyHigner avatar A-birdFlyHigner commented on April 28, 2024

要 await 吧。这种查询不可能是同步的。

这个其实跟 egg 没啥关系了,就是 qiniu 的 sdk 是 callback 的,如何包成 promise。

看起来是这样的,现在就卡在这里了

from egg.

atian25 avatar atian25 commented on April 28, 2024

找下 qiniu 那边的人问问,看他们有没有提供 promise 的 api。

从你最顶上的源码截图来看,promise 包装似乎没问题的。你可以试下,不用 egg,直接写个 index.js 里面跑下这段代码,调试通了再放 egg 一点点来。

from egg.

A-birdFlyHigner avatar A-birdFlyHigner commented on April 28, 2024

找下 qiniu 那边的人问问,看他们有没有提供 promise 的 api。

从你最顶上的源码截图来看,promise 包装似乎没问题的。你可以试下,不用 egg,直接写个 index.js 里面跑下这段代码,调试通了再放 egg 一点点来。

好的,谢谢天猪。

from egg.

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.