Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
dfcb3dd9
Commit
dfcb3dd9
authored
Oct 11, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化上海张江药谷公共服务平台有限公司下的所有未迁出企业密码
parent
55df0f92
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
initPassword.ts
src/biz/initPassword.ts
+37
-0
main.ts
src/main.ts
+4
-0
No files found.
src/biz/initPassword.ts
0 → 100644
View file @
dfcb3dd9
import
*
as
sysTools
from
"../tools/system"
;
import
*
as
enterpriseData
from
"../data/enterprise/enterprise"
;
/**
* 修改企业密码为统一信用代码后六位
* @param uscc 企业统一信用代码
*/
export
async
function
enterpriseChangePwd
(
uscc
:
string
)
{
let
dataBaseInfo
=
await
enterpriseData
.
findEnterpriseByUscc
(
uscc
);
let
pwd
=
uscc
.
slice
(
-
6
);
console
.
log
(
`已初始化企业:
${
uscc
}
, 密码:
${
pwd
}
`
);
dataBaseInfo
.
pwd
=
sysTools
.
getPwdMd5
(
uscc
,
sysTools
.
md5PwdStr
(
pwd
));
await
dataBaseInfo
.
save
();
return
{
isSuccess
:
true
};
}
/**
* 匹配上海张江药谷公共服务平台有限公司
*/
export
async
function
getFuHuaQiEnterprise
()
{
let
dataBaseInfo
=
await
enterpriseData
.
findEnterpriseList
({
"fuHuaQiUscc"
:
"913101157664917120"
,
"state"
:{
"$ne"
:
4
}});
//上海张江药谷公共服务平台有限公司
console
.
log
(
dataBaseInfo
.
length
);
for
(
let
i
=
0
;
i
<
dataBaseInfo
.
length
;
i
++
)
{
let
enterpriseInfo
=
dataBaseInfo
[
i
];
await
enterpriseChangePwd
(
enterpriseInfo
.
uscc
);
console
.
log
();
}
return
{
isSuccess
:
true
};
}
src/main.ts
View file @
dfcb3dd9
import
{
test
,
zhenDuanBaoGao
,
修复重复
,
补充经纬度
}
from
"./biz/admin/provide"
;
import
{
initPool
}
from
"./biz/gpt/indicatorPool"
;
import
{
initOutline
}
from
"./biz/gpt/report"
;
import
{
getFuHuaQiEnterprise
}
from
"./biz/initPassword"
;
import
{
updateQCCDataTask
}
from
"./biz/qccInit"
;
import
{
initSMS
}
from
"./biz/sms"
;
import
{
initSystemTask
}
from
"./biz/systemTask"
;
...
...
@@ -31,6 +32,9 @@ async function lanuch() {
// await test();
// await zhenDuanBaoGao();
// updateQCCDataTask();
/**初始化孵化器上海张江药谷公共服务平台有限公司下所有企业密码 */
await
getFuHuaQiEnterprise
();
}
...
...
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