登录显示ERR_LOGIN_MISSING_SESSION
来源:6-1 个人中心-用户信息获取+展示
隔壁班的黄同学
2018-05-25

如图,为什么我的登录报错还和你们不一样,我也是醉了。
以下是目录结构:

server下的config.js:
const CONF = {
serverHost: 'localhost',
tunnelServerUrl: '',
tunnelSignatureKey: '27fb7d1c161b7ca52d73cce0f1d833f9f5b5ec89',
// 腾讯云相关配置可以查看云 API 秘钥控制台:https://console.cloud.tencent.com/capi
qcloudAppId: '确认过没填错',
qcloudSecretId: '确认过没填错',
qcloudSecretKey: '确认过没填错',
wxMessageToken: 'weixinmsgtoken',
networkTimeout: 30000,
port: '5757',
rootPathname: '',
// 微信小程序 App ID
appId: '确认过没填错',
// 微信小程序 App Secret
appSecret: '确认过没填错',
// 是否使用腾讯云代理登录小程序
useQcloudLogin: true,
/**
* MySQL 配置,用来存储 session 和用户信息
* 若使用了腾讯云微信小程序解决方案
* 开发环境下,MySQL 的初始密码为您的微信小程序 appid
*/
mysql: {
host: 'localhost',
port: 3306,
user: 'root',
db: 'cAuth',
pass: 'root',
char: 'utf8mb4'
},
cos: {
/**
* 地区简称
* @查看 https://cloud.tencent.com/document/product/436/6224
*/
region: 'ap-guangzhou',
// Bucket 名称
fileBucket: 'qcloudtest',
// 文件夹
uploadFolder: ''
},
// 微信登录态有效期
wxLoginExpires: 7200,
wxMessageToken: 'abcdefgh'
}
module.exports = CONFsrc下的config:
// 配置项
const host = 'http://localhost:5757'
const config = {
host,
loginUrl:`${host}/weaoo/login`
}
export default config开启server时,腾讯云上传代码,部署环境时报错:
{"code":-1,"reason":"npm WARN checkPermissions Missing write access to /data/release/node-weapp-demo/node_modules/crypto-random-string npm WARN checkPermissions Missing write access to /data/release/node-weapp-demo/node_m"}
感觉自己好累,没得玩了 (┬_┬)
写回答
1回答
-
慕瓜8449030
2018-05-26
你好,请看手记 http://www.imooc.com/article/31092
012018-05-26
相似问题