云函数axios请求stringify response to json failed?
发布于 5 年前 作者 xiulan79 3822 次浏览 来自 问答
router.get('/wyu/jwxc/login', (req, res) => {
  try {
    (async () => {
      let img = await login()
      res.send({
       data: "data:image/jpeg;base64," + img
      });
    })()
  } catch (error) {
    res.send({
      img: 500
    });
  }

})

不知道为什么会报错?

回到顶部