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
1369bc00
Commit
1369bc00
authored
Feb 08, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8180ba4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
user.ts
src/biz/fuHuqQi/user.ts
+1
-1
fuhuaqi.ts
src/routers/fuhuaqi.ts
+17
-0
No files found.
src/biz/fuHuqQi/user.ts
View file @
1369bc00
...
...
@@ -33,7 +33,7 @@ export async function login(uscc:string, pwd:string) {
/**
* 首次登录修改密码
* @param uscc 孵化器统一信用代码
* @param pwd 新密码
p
* @param pwd 新密码
* @param confirmPwd 确认密码
* @returns
*/
...
...
src/routers/fuhuaqi.ts
View file @
1369bc00
...
...
@@ -12,6 +12,7 @@ import { checkReqParam } from '../util/tools';
export
function
setRouter
(
httpServer
)
{
httpServer
.
post
(
'/fuhuaqi/login'
,
asyncHandler
(
login
));
httpServer
.
post
(
'/fuhuaqi/login/firstupdate'
,
asyncHandler
(
login
));
/**基础数据 */
httpServer
.
post
(
'/fuhuaqi/base'
,
asyncHandler
(
baseInfo
));
httpServer
.
post
(
'/fuhuaqi/mydata'
,
asyncHandler
(
myDataInfo
));
...
...
@@ -134,6 +135,22 @@ async function login(req, res) {
res
.
success
(
result
);
}
/**
* 孵化器首次登录
* @param req
* @param res
*/
async
function
firstUpdatePwd
(
req
,
res
)
{
let
reqConf
=
{
confirmPwd
:
'String'
,
pwd
:
'String'
,
};
let
{
confirmPwd
,
pwd
}
=
checkReqParam
(
reqConf
,
req
.
body
);
const
Uscc
=
req
.
headers
.
uscc
;
let
result
=
await
userBiz
.
firstLoginChangePwd
(
Uscc
,
pwd
,
confirmPwd
);
res
.
success
(
result
);
}
/**
...
...
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