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
ef7b3237
Commit
ef7b3237
authored
Feb 07, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
gbs
parents
00598e96
ea7a0f21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
.gitignore
+2
-1
xgg-admin/app/base/controller/impl/common/deliverCtl.js
+7
-2
xgg-admin/app/base/db/cache/apiAccessKeyCache.js
+5
-1
No files found.
.gitignore
View file @
ef7b3237
xgg-admin/node_modules/
*
xgg-admin/node_modules/
.idea/*
\ No newline at end of file
xgg-admin/app/base/controller/impl/common/deliverCtl.js
View file @
ef7b3237
...
...
@@ -81,9 +81,14 @@ class DeliverCtl extends CtlBase {
if
(
!
real_name
)
{
return
system
.
getResult
(
null
,
"请输入管理员名称"
);
}
if
(
!
ucname
)
{
return
system
.
getResult
(
null
,
"请
输入帐号
名"
);
if
(
!
ucname
)
{
return
system
.
getResult
(
null
,
"请
填写用户
名"
);
}
if
(
!
(
/^1
\d{10}
$/
.
test
(
ucname
)))
{
return
system
.
getResult
(
null
,
"帐号名必须为手机号"
);
}
if
(
!
id
)
{
if
(
!
password
)
{
return
system
.
getResult
(
null
,
"请输入密码"
);
...
...
xgg-admin/app/base/db/cache/apiAccessKeyCache.js
View file @
ef7b3237
...
...
@@ -13,7 +13,11 @@ class ApiAccessKeyCache extends CacheBase {
return
settings
.
cacheprefix
+
"_accesskey:"
;
}
async
buildCacheVal
(
cachekey
,
inputkey
,
val
,
ex
,
...
items
)
{
var
acckapp
=
await
this
.
restS
.
execPost
({
appkey
:
settings
.
appKey
,
secret
:
settings
.
secret
},
settings
.
paasUrl
()
+
"api/auth/accessAuth/getAccessKey"
);
var
p
=
{
appkey
:
settings
.
appKey
,
secret
:
settings
.
secret
};
var
url
=
settings
.
paasUrl
()
+
"api/auth/accessAuth/getAccessKey"
;
var
acckapp
=
await
this
.
restS
.
execPost
(
p
,
settings
.
paasUrl
()
+
"api/auth/accessAuth/getAccessKey"
);
console
.
log
(
url
,
p
,
acckapp
,
"req platform result -----------------------"
);
var
s
=
acckapp
.
stdout
;
if
(
s
)
{
var
tmp
=
JSON
.
parse
(
s
);
...
...
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