Skip to content

Commit

Permalink
腾讯云不再静默授权,请自行完成腾讯云代理登录
Browse files Browse the repository at this point in the history
相关文档地址:tencentyun/wafer2-quickstart#13
  • Loading branch information
yuanyayi committed Oct 23, 2018
1 parent 1b2803d commit e853608
Showing 1 changed file with 39 additions and 35 deletions.
74 changes: 39 additions & 35 deletions cy-wechat-mall/server/config.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
const CONF = {
port: '5757',
rootPathname: '',
port: '5757',
rootPathname: '',

// 微信小程序 App ID
appId: 'wxd797a763195dd894',
// 微信小程序 App ID
appId: 'wxd797a763195dd894',

// 微信小程序 App Secret
appSecret: '33f1446c405386cd984d544d97c448e2',
// 微信小程序 App Secret
appSecret: '33f1446c405386cd984d544d97c448e2',

// 是否使用腾讯云代理登录小程序
useQcloudLogin: true,
// 是否使用腾讯云代理登录小程序
useQcloudLogin: true,
// 云API密钥
qcloudAppId: '1257457094',
qcloudSecretId: 'AKIDGNI0UlEfHhtrb7FVMzOddPxGMErGcO8e',
qcloudSecretKey: 'QdbLq66sTqBJF0Ys0vd8QVKuFK9i14rO',

/**
* MySQL 配置,用来存储 session 和用户信息
* 若使用了腾讯云微信小程序解决方案
* 开发环境下,MySQL 的初始密码为您的微信小程序 appid
*/
mysql: {
host: 'localhost',
port: 3306,
user: 'root',
db: 'cAuth',
pass: 'wxd797a763195dd894',
char: 'utf8mb4'
},

cos: {
/**
* MySQL 配置,用来存储 session 和用户信息
* 若使用了腾讯云微信小程序解决方案
* 开发环境下,MySQL 的初始密码为您的微信小程序 appid
* 地区简称
* @查看 https://cloud.tencent.com/document/product/436/6224
*/
mysql: {
host: 'localhost',
port: 3306,
user: 'root',
db: 'cAuth',
pass: 'wxd797a763195dd894',
char: 'utf8mb4'
},

cos: {
/**
* 地区简称
* @查看 https://cloud.tencent.com/document/product/436/6224
*/
region: 'ap-guangzhou',
// Bucket 名称
fileBucket: 'qcloudtest',
// 文件夹
uploadFolder: ''
},
region: 'ap-guangzhou',
// Bucket 名称
fileBucket: 'qcloudtest',
// 文件夹
uploadFolder: ''
},

// 微信登录态有效期
wxLoginExpires: 7200,
wxMessageToken: 'abcdefgh'
// 微信登录态有效期
wxLoginExpires: 7200,
wxMessageToken: 'abcdefgh'
}

module.exports = CONF
module.exports = CONF

0 comments on commit e853608

Please sign in to comment.