Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
8c886e3f
Commit
8c886e3f
authored
Nov 09, 2019
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
6e55134b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletions
+39
-1
scratch-web/app/base/db/impl/userDao.js
+7
-1
scratch-web/app/config/localsettings.js
+32
-0
No files found.
scratch-web/app/base/db/impl/userDao.js
View file @
8c886e3f
...
@@ -37,8 +37,14 @@ class UserDao extends Dao{
...
@@ -37,8 +37,14 @@ class UserDao extends Dao{
}
}
async
getUserByOpenId
(
popenid
,
appid
,
t
){
async
getUserByOpenId
(
popenid
,
appid
,
t
){
// var app=await this.appDao.findOne(appkey);
// var app=await this.appDao.findOne(appkey);
var
querywhere
=
null
;
if
(
!
appid
){
querywhere
=
{
openId
:
popenid
};
}
else
{
querywhere
=
{
openId
:
popenid
,
app_id
:
appid
};
}
var
tUser
=
await
this
.
model
.
findOne
({
var
tUser
=
await
this
.
model
.
findOne
({
where
:
{
openId
:
popenid
,
app_id
:
appid
}
,
where
:
querywhere
,
include
:[{
model
:
this
.
db
.
models
.
app
,
raw
:
true
},
include
:[{
model
:
this
.
db
.
models
.
app
,
raw
:
true
},
// {model:this.db.models.partnerinfo,attributes:["id","user_id","app_id","userName","applyType","applyName","workPic","tagInfo","mobile","tel","applyProvince","applyCity",
// {model:this.db.models.partnerinfo,attributes:["id","user_id","app_id","userName","applyType","applyName","workPic","tagInfo","mobile","tel","applyProvince","applyCity",
// "applyArea","applyAddr","identityCardPic","identityCard","businessLicensePic","businessLicenseNum","entName","cardNo","realName"]},
// "applyArea","applyAddr","identityCardPic","identityCard","businessLicensePic","businessLicenseNum","entName","cardNo","realName"]},
...
...
scratch-web/app/config/localsettings.js
0 → 100644
View file @
8c886e3f
var
settings
=
{
redis
:{
host
:
"43.247.184.32"
,
port
:
8967
,
password
:
"Gongsibao2018"
,
db
:
10
,
},
database
:{
dbname
:
"zc"
,
user
:
"root"
,
password
:
"123456"
,
config
:
{
host
:
'192.168.4.119'
,
port
:
3306
,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
pool
:
{
max
:
5
,
min
:
0
,
acquire
:
90000000
,
idle
:
1000000
},
debug
:
false
,
dialectOptions
:{
requestTimeout
:
999999
,
// instanceName:'DEV'
}
//设置MSSQL超时时间
}
},
reqEsDevUrl
:
"http://192.168.4.249:9200/"
,
};
module
.
exports
=
settings
;
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