Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BlackPearl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
BlackPearl
Commits
c364007c
Commit
c364007c
authored
Nov 24, 2017
by
田亚伟
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
11e60f0c
345cf418
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
4 deletions
+18
-4
.gitignore
.gitignore
+2
-2
url-edit-ctrl.js
app/blackPearl/view/app/ctrl/url/url-edit-ctrl.js
+2
-0
package.json
package.json
+8
-1
app.js
src/app.js
+1
-0
index.js
src/bp_modules/datasource/index.js
+5
-1
No files found.
.gitignore
View file @
c364007c
config/server.json
package-lock.json
uploads
uploads/
tmp/
dump.rdb
libs
uploads
/node_modules
npm-debug.*
.DS_Store
app/blackPearl/view/app/ctrl/url/url-edit-ctrl.js
View file @
c364007c
...
...
@@ -231,6 +231,7 @@ function UrlEditCtrl($scope, Project, Url, TemplateUrlRoute) {
resizeAce
(
item
);
}
$
(
window
).
resize
(
resizeAce
);
$
(
window
).
unbind
(
"
keydown
"
);
$
(
window
).
bind
(
"
keydown
"
,
{
fun
:
function
()
{
//保存数据
...
...
@@ -378,6 +379,7 @@ function UrlEditCtrl($scope, Project, Url, TemplateUrlRoute) {
$scope
.
modal
.
title
=
title
;
$scope
.
modal
.
value
=
model
;
$
(
'
#myModal
'
).
modal
(
'
show
'
);
$
(
'
#modalInput
'
).
unbind
(
"
keydown
"
);
$
(
'
#modalInput
'
).
bind
(
"
keydown
"
,
{
do
:
callback
},
modalInputCallBack
);
}
var
reg
=
/^
[\u
4E00-
\u
9FA5
]
+$/
;
...
...
package.json
View file @
c364007c
...
...
@@ -60,7 +60,14 @@
"
request
"
:
"
^2.75.0
"
,
"
statuses
"
:
"
^1.3.0
"
,
"
strip-json-comments
"
:
"
^2.0.1
"
,
"
swiger
"
:
"
0.0.2
"
"
swiger
"
:
"
0.0.2
"
,
"
bankcardinfo
"
:
""
,
"
log4js
"
:
""
,
"
redis
"
:
""
,
"
concat-files
"
:
""
,
"
bluebird
"
:
""
,
"
multer
"
:
""
,
"
xml2json
"
:
""
},
"devDependencies"
:
{
"
mm
"
:
"
^2.0.0
"
,
...
...
src/app.js
View file @
c364007c
...
...
@@ -235,6 +235,7 @@ Bp_modules.datasource.init();
let
require_module
=
{};
require_module
[
"
bin
"
]
=
require
(
'
bankcardinfo
'
);
require_module
[
"
xml2json
"
]
=
require
(
'
xml2json
'
);
//这个是存在内存里面,可以通过调用接口来更新的。
...
...
src/bp_modules/datasource/index.js
View file @
c364007c
...
...
@@ -22,7 +22,11 @@ module.exports = {
get
:
function
(
ctx
,
key
)
{
return
this
.
client
.
getAsync
(
`
${
ctx
.
request
.
ip
}${
key
}
`
).
then
(
function
(
records
){
try
{
return
JSON
.
parse
(
records
).
val
if
(
!!!
records
){
return
null
}
else
{
return
JSON
.
parse
(
records
).
val
}
}
catch
(
error
)
{
return
error
}
...
...
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