Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
f00993cc
Commit
f00993cc
authored
Apr 14, 2015
by
邓军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信接口配置
parent
134b62e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
config.js
config/config.js
+6
-2
express.js
config/express.js
+3
-3
No files found.
config/config.js
View file @
f00993cc
...
...
@@ -9,9 +9,10 @@ var config = {
app
:
{
name
:
'pisns-forum-api'
},
service
:
'http://localhost'
,
port
:
3011
,
mongodb
:
{
uri
:
'mongodb://114.215.206.32:27018/pisns-forum
-sandbox
'
,
uri
:
'mongodb://114.215.206.32:27018/pisns-forum'
,
username
:
''
,
password
:
''
,
poolSize
:
5
...
...
@@ -27,7 +28,7 @@ var config = {
sessionStore
:
{
password
:
''
,
port
:
6379
,
host
:
'1
0.161.177.181
'
,
host
:
'1
15.29.177.177
'
,
db
:
2
}
},
...
...
@@ -37,6 +38,7 @@ var config = {
app
:
{
name
:
'pisns-forum-api'
},
service
:
'http://sandbox.wxpai.cn'
,
port
:
3011
,
mongodb
:
{
uri
:
'mongodb://114.215.206.32:27018/pisns-forum-sandbox'
,
...
...
@@ -65,7 +67,9 @@ var config = {
app
:
{
name
:
'pisns-forum-api'
},
service
:
'http://pisns.wxpai.cn'
,
port
:
3011
,
mongodb
:
{
uri
:
'mongodb://10.173.226.96:27017/pisns-forum'
,
username
:
'future'
,
...
...
config/express.js
View file @
f00993cc
...
...
@@ -53,12 +53,12 @@ module.exports = function(app, config) {
});
app
.
use
(
function
(
req
,
res
,
next
)
{
if
(
!
req
.
session
.
user
&&
req
.
query
.
key
&&
req
.
query
.
key
===
'aiwanpai'
)
{
if
(
!
req
.
session
.
user
)
{
req
.
session
.
user
=
{
ent_code
:
1000
4
1
ent_code
:
1000
0
1
};
}
if
(
!
req
.
session
.
openUser
&&
req
.
query
.
key
&&
req
.
query
.
key
===
'aiwanpai'
)
{
if
(
!
req
.
session
.
openUser
)
{
req
.
session
.
openUser
=
{
openId
:
'1111'
,
integral
:
'100'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment