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
4c468b20
Commit
4c468b20
authored
Dec 15, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 代码规范
parent
f2d0cc91
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
25 deletions
+9
-25
center-manage/app/base/controller/impl/common/appCtl.js
+4
-4
center-manage/app/base/db/impl/common/cacheManager.js
+4
-4
center-manage/app/base/service/impl/product/pricestrategySve.js
+1
-17
No files found.
center-manage/app/base/controller/impl/common/appCtl.js
View file @
4c468b20
...
@@ -49,10 +49,10 @@ class AppCtl extends CtlBase {
...
@@ -49,10 +49,10 @@ class AppCtl extends CtlBase {
const
rtn
=
await
this
.
service
.
saveFuncTree
(
p
);
const
rtn
=
await
this
.
service
.
saveFuncTree
(
p
);
return
system
.
getResult
(
rtn
);
return
system
.
getResult
(
rtn
);
}
}
async
create
(
pobj
,
queryobj
,
req
)
{
//
async create(pobj, queryobj, req) {
pobj
.
creator_id
=
pobj
.
userid
;
// 设置创建者
//
pobj.creator_id = pobj.userid;// 设置创建者
return
super
.
create
(
pobj
,
queryobj
,
req
);
//
return super.create(pobj, queryobj, req);
}
//
}
async
update
(
pobj
,
queryobj
,
req
)
{
async
update
(
pobj
,
queryobj
,
req
)
{
return
super
.
update
(
pobj
,
queryobj
,
req
);
return
super
.
update
(
pobj
,
queryobj
,
req
);
}
}
...
...
center-manage/app/base/db/impl/common/cacheManager.js
View file @
4c468b20
...
@@ -12,13 +12,13 @@ class CacheManager {
...
@@ -12,13 +12,13 @@ class CacheManager {
const
files
=
fs
.
readdirSync
(
cachePath
);
const
files
=
fs
.
readdirSync
(
cachePath
);
if
(
files
)
{
if
(
files
)
{
files
.
forEach
((
r
)
=>
{
files
.
forEach
((
r
)
=>
{
const
c
lassObj
=
require
(
`
${
cachePath
}
/
${
r
}
`
);
const
C
lassObj
=
require
(
`
${
cachePath
}
/
${
r
}
`
);
self
[
classObj
.
name
]
=
new
c
lassObj
();
self
[
ClassObj
.
name
]
=
new
C
lassObj
();
const
refTmp
=
self
[
c
lassObj
.
name
];
const
refTmp
=
self
[
C
lassObj
.
name
];
if
(
refTmp
.
prefix
)
{
if
(
refTmp
.
prefix
)
{
self
.
doc
[
refTmp
.
prefix
]
=
refTmp
.
desc
;
self
.
doc
[
refTmp
.
prefix
]
=
refTmp
.
desc
;
}
else
{
}
else
{
console
.
log
(
`请在
${
c
lassObj
.
name
}
缓存中定义prefix`
);
console
.
log
(
`请在
${
C
lassObj
.
name
}
缓存中定义prefix`
);
}
}
});
});
}
}
...
...
center-manage/app/base/service/impl/product/pricestrategySve.js
View file @
4c468b20
...
@@ -51,6 +51,7 @@ class PricestrategyService extends ServiceBase {
...
@@ -51,6 +51,7 @@ class PricestrategyService extends ServiceBase {
const
one
=
rows
[
i
];
const
one
=
rows
[
i
];
const
two
=
rows
[
++
i
];
const
two
=
rows
[
++
i
];
console
.
log
(
two
,
'..........'
);
console
.
log
(
two
,
'..........'
);
// eslint-disable-next-line no-loop-func
one
.
forEach
((
item
)
=>
{
one
.
forEach
((
item
)
=>
{
two
.
forEach
((
c
)
=>
{
two
.
forEach
((
c
)
=>
{
mid
.
push
(
`
${
item
}
|
${
c
}
`
);
mid
.
push
(
`
${
item
}
|
${
c
}
`
);
...
@@ -71,20 +72,3 @@ class PricestrategyService extends ServiceBase {
...
@@ -71,20 +72,3 @@ class PricestrategyService extends ServiceBase {
}
}
}
}
module
.
exports
=
PricestrategyService
;
module
.
exports
=
PricestrategyService
;
// (async ()=>{
// let u=new AppService();
// // let x=await u.cregister("jiangong")
// // console.log(x)
// // let x=await u.cunregister("jiangong")
// // console.log(x)
// // let t=await u.cmakejwt()
// // console.log(t)
// //let ux=await u.cjsonregister(AppService.newRouteUrl("test-service2"),{name:"test-service2",hosts:["ttest1.com"]})
// //let ux=await u.cjsonregister(AppService.newServiceUrl(),{name:"test-service3",url:"http://zhichan.gongsibao.com"})
// //let ux=await u.cdel(AppService.routeUrl("test-service2"))
// //let ux=await u.cdel(AppService.serviceUrl("test-service2"))
// // let ux=await u.create({name:"test4-service",backend:"zhichan-service",domainName:"domain.com"})
// // console.log(ux);
// // let delrtn=await u.delete({id:2,name:"test4-service"})
// // console.log(delrtn);
// })()
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