云对象代码:
const jwt = require('jsonwebtoken')
module.exports = {
_before: function () { // 通用预处理器
httpInfo = this.getHttpInfo()
},
async login(){ //平台登录
return jwt
}
}
package.json
{
"name": "dpadminen",
"dependencies": {
"jsonwebtoken": "^8.5.1"
},
"extensions": {
"uni-cloud-jql": {}
},
"cloudfunction-config": {
"runtime": "Nodejs14"
},
"version": "1.0.0",
"main": "index.obj.js",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
0 个回复