Skip to content

疑似个人状态显示云函数代码错误 #5

Description

@songtianlun

按照这个步骤配置个人状态显示:https://mx-space.js.org/docs/themes/shiro/extra#%E8%AE%BE%E7%BD%AE%E7%8A%B6%E6%80%81

之后在首页配置状态,接口报错:
POST https://xxx.xxx.com/api/v2/serverless/shiro/status
{"ok":0,"code":80000,"message":"Function 执行报错: ctx.status is not a function"}

实测注释掉报错行后恢复正常:

https://github.com/mx-space/snippets/blob/main/shiro/functions/status.ts

- ctx.status(204)
+ // ctx.status(204)

本人不是很懂这里面的原理,不确定应该如何修复,因此把这个临时解决方案先贴在这里,还望大佬指正

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions