Commit f00993cc authored by 邓军's avatar 邓军

微信接口配置

parent 134b62e3
...@@ -9,9 +9,10 @@ var config = { ...@@ -9,9 +9,10 @@ var config = {
app: { app: {
name: 'pisns-forum-api' name: 'pisns-forum-api'
}, },
service:'http://localhost',
port: 3011, port: 3011,
mongodb: { mongodb: {
uri: 'mongodb://114.215.206.32:27018/pisns-forum-sandbox', uri: 'mongodb://114.215.206.32:27018/pisns-forum',
username: '', username: '',
password: '', password: '',
poolSize: 5 poolSize: 5
...@@ -27,7 +28,7 @@ var config = { ...@@ -27,7 +28,7 @@ var config = {
sessionStore: { sessionStore: {
password: '', password: '',
port: 6379, port: 6379,
host: '10.161.177.181', host: '115.29.177.177',
db: 2 db: 2
} }
}, },
...@@ -37,6 +38,7 @@ var config = { ...@@ -37,6 +38,7 @@ var config = {
app: { app: {
name: 'pisns-forum-api' name: 'pisns-forum-api'
}, },
service:'http://sandbox.wxpai.cn',
port: 3011, port: 3011,
mongodb: { mongodb: {
uri: 'mongodb://114.215.206.32:27018/pisns-forum-sandbox', uri: 'mongodb://114.215.206.32:27018/pisns-forum-sandbox',
...@@ -65,7 +67,9 @@ var config = { ...@@ -65,7 +67,9 @@ var config = {
app: { app: {
name: 'pisns-forum-api' name: 'pisns-forum-api'
}, },
service:'http://pisns.wxpai.cn',
port: 3011, port: 3011,
mongodb: { mongodb: {
uri: 'mongodb://10.173.226.96:27017/pisns-forum', uri: 'mongodb://10.173.226.96:27017/pisns-forum',
username: 'future', username: 'future',
......
...@@ -53,12 +53,12 @@ module.exports = function(app, config) { ...@@ -53,12 +53,12 @@ module.exports = function(app, config) {
}); });
app.use(function(req, res, next) { app.use(function(req, res, next) {
if (!req.session.user && req.query.key && req.query.key === 'aiwanpai') { if (!req.session.user ) {
req.session.user = { req.session.user = {
ent_code: 100041 ent_code: 100001
}; };
} }
if (!req.session.openUser && req.query.key && req.query.key === 'aiwanpai') { if (!req.session.openUser) {
req.session.openUser = { req.session.openUser = {
openId: '1111', openId: '1111',
integral: '100', integral: '100',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment