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
7381eed6
Commit
7381eed6
authored
May 03, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
8d52fe62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
center-manage/app/base/db/cache/userCache.js
+1
-2
center-manage/app/base/db/models/common/company.js
+16
-0
center-manage/app/base/system.js
+2
-2
No files found.
center-manage/app/base/db/cache/userCache.js
View file @
7381eed6
...
...
@@ -19,8 +19,7 @@ class UserCache extends CacheBase{
const
configValue
=
await
this
.
userDao
.
model
.
findOne
({
where
:
{
userName
:
inputkey
,
app_id
:
settings
.
pmappid
},
attributes
:
[
'userName'
,
'nickName'
,
'headUrl'
,
'jwtkey'
,
'jwtsecret'
,
'created_at'
,
'isSuper'
,
'isAdmin'
],
include
:
[{
model
:
this
.
db
.
models
.
company
,
raw
:
true
,
attributes
:
[
"companykey"
]
}],
raw
:
true
include
:
[{
model
:
this
.
db
.
models
.
company
,
raw
:
true
}],
});
if
(
configValue
)
{
...
...
center-manage/app/base/db/models/common/company.js
View file @
7381eed6
...
...
@@ -11,6 +11,22 @@ module.exports = (db, DataTypes) => {
type
:
DataTypes
.
STRING
,
allowNull
:
false
,
},
//和user的from
address
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
//和user的from
mail
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
//和user的from
phone
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
licenseUrl
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
},
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
...
...
center-manage/app/base/system.js
View file @
7381eed6
...
...
@@ -62,12 +62,12 @@ class System {
})
return
promise
;
}
static
async
postJsonTypeReq
(
url
,
data
){
static
async
postJsonTypeReq
(
url
,
data
,
md
=
"POST"
){
let
rtn
=
{}
let
promise
=
new
Promise
(
function
(
resv
,
rej
){
request
({
url
:
url
,
method
:
"POST"
,
method
:
md
,
json
:
true
,
headers
:
{
"content-type"
:
"application/json"
,
...
...
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