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
71013084
Commit
71013084
authored
Jul 15, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-manage' of gitlab.gongsibao.com:jiangyong/zhichan into center-manage
parents
76be3074
b36c5fd2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
center-manage/app/base/service/impl/auth/userSve.js
+2
-1
center-manage/app/base/service/impl/product/b.txt
+6
-0
center-manage/app/base/service/impl/product/xproductSve.js
+3
-0
center-manage/app/base/system.js
+1
-1
No files found.
center-manage/app/base/service/impl/auth/userSve.js
View file @
71013084
...
...
@@ -305,7 +305,7 @@ class UserService extends ServiceBase {
//身份中的secret验证签名
async
jwtsign
(
plkey
,
secretstr
,
opts
)
{
let
promise
=
new
Promise
(
function
(
resv
,
rej
)
{
jwt
.
sign
({
iss
:
plkey
},
secretstr
,
opts
,
function
(
err
,
rtn
)
{
jwt
.
sign
({
exp
:
Math
.
floor
(
Date
.
now
()
/
1000
)
+
(
60
*
60
),
iss
:
plkey
},
secretstr
,
opts
,
function
(
err
,
rtn
)
{
if
(
err
)
{
rej
(
err
);
}
else
{
...
...
@@ -365,6 +365,7 @@ class UserService extends ServiceBase {
async
update
(
qobj
,
tm
=
null
)
{
var
self
=
this
;
return
this
.
db
.
transaction
(
async
function
(
t
)
{
delete
qobj
[
'company_id'
]
let
up
=
await
self
.
dao
.
update
(
qobj
,
t
);
//令缓存失效
await
self
.
cacheManager
[
"UserCache"
].
invalidate
(
qobj
.
userName
);
...
...
center-manage/app/base/service/impl/product/b.txt
0 → 100644
View file @
71013084
[
{"id":41,"price_code":"sv_business_registration_category_indi7","product_name":"/ic/cpreg/","price_name":"个体工商","created_at":null,"updated_at":null,"deleted_at":null,"version":null},
{"id":42,"price_code":"sv_business_registration_category_lp7","product_name":"/ic/cpreg/","price_name":"有限公司","created_at":null,"updated_at":null,"deleted_at":null,"version":null},
{"id":43,"price_code":"sv_business_registration_category_sole7","product_name":"/ic/cpreg/","price_name":"个人独资","created_at":null,"updated_at":null,"deleted_at":null,"version":null}
]
\ No newline at end of file
center-manage/app/base/service/impl/product/xproductSve.js
View file @
71013084
...
...
@@ -49,6 +49,9 @@ function findTitlePath(items, findstr, results) {
product
.
company_id
=
1
//构造策略ids
let
stsinfos
=
await
ps
.
db
.
models
.
xproductprice
.
findAll
({
where
:{
product_name
:
xp
.
path_code
},
raw
:
true
})
if
(
xp
.
region_name
==
"重庆"
&&
xp
.
path_code
==
"/ic/cpreg/"
){
fs
.
writeFileSync
(
"./b.txt"
,
JSON
.
stringify
(
stsinfos
))
}
let
straid
=
[]
let
skucodemap
=
{}
for
(
let
stinfo
of
stsinfos
){
...
...
center-manage/app/base/system.js
View file @
71013084
...
...
@@ -282,7 +282,7 @@ class System {
requestId
:
resultInfo
.
requestId
||
""
}
};
console
.
log
(
param
)
console
.
log
(
JSON
.
stringify
(
param
)
)
let
P
=
new
Promise
((
resv
,
rej
)
=>
{
this
.
postJsonTypeReq
(
reqUrl
,
param
).
then
(
res
=>
{
if
(
res
.
statusCode
==
200
){
...
...
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