明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
letian_backend
Project
Project
Details
Activity
Releases
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
zengfanpei
letian_backend
Commits
25b5c2f7
Commit
25b5c2f7
authored
Dec 16, 2024
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c91bc3eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
userController.js
controller/userController.js
+1
-0
letianProductDeep.js
db/models/letianProductDeep.js
+1
-1
letianProductPlant.js
db/models/letianProductPlant.js
+1
-1
letianProductPre.js
db/models/letianProductPre.js
+1
-1
No files found.
controller/userController.js
View file @
25b5c2f7
...
@@ -48,6 +48,7 @@ async function login(req, res, next) {
...
@@ -48,6 +48,7 @@ async function login(req, res, next) {
req
.
body
.
password
=
encArr
[
1
];
req
.
body
.
password
=
encArr
[
1
];
}
}
const
{
mobile
,
password
}
=
req
.
body
;
const
{
mobile
,
password
}
=
req
.
body
;
console
.
log
(
req
.
body
)
const
user
=
await
userModule
.
findUserByMobile
(
mobile
);
const
user
=
await
userModule
.
findUserByMobile
(
mobile
);
if
(
!
user
)
{
if
(
!
user
)
{
return
res
.
sendError
(
errorMessage
.
loginError
);
return
res
.
sendError
(
errorMessage
.
loginError
);
...
...
db/models/letianProductDeep.js
View file @
25b5c2f7
...
@@ -75,5 +75,5 @@ const letianProductDeepSchema = new Schema({
...
@@ -75,5 +75,5 @@ const letianProductDeepSchema = new Schema({
});
});
const
ProductDeep
=
mongoose
.
model
(
'
letian
ProductDeep'
,
letianProductDeepSchema
,
'letianProductDeep'
);
const
ProductDeep
=
mongoose
.
model
(
'ProductDeep'
,
letianProductDeepSchema
,
'letianProductDeep'
);
module
.
exports
=
ProductDeep
;
module
.
exports
=
ProductDeep
;
\ No newline at end of file
db/models/letianProductPlant.js
View file @
25b5c2f7
...
@@ -69,5 +69,5 @@ const letianProductPlantSchema = new Schema({
...
@@ -69,5 +69,5 @@ const letianProductPlantSchema = new Schema({
});
});
const
ProductPlant
=
mongoose
.
model
(
'
letian
ProductPlant'
,
letianProductPlantSchema
,
'letianProductPlant'
);
const
ProductPlant
=
mongoose
.
model
(
'ProductPlant'
,
letianProductPlantSchema
,
'letianProductPlant'
);
module
.
exports
=
ProductPlant
;
module
.
exports
=
ProductPlant
;
\ No newline at end of file
db/models/letianProductPre.js
View file @
25b5c2f7
...
@@ -76,5 +76,5 @@ const letianProductPreSchema = new Schema({
...
@@ -76,5 +76,5 @@ const letianProductPreSchema = new Schema({
});
});
const
ProductPre
=
mongoose
.
model
(
'
letian
ProductPre'
,
letianProductPreSchema
,
'letianProductPre'
);
const
ProductPre
=
mongoose
.
model
(
'ProductPre'
,
letianProductPreSchema
,
'letianProductPre'
);
module
.
exports
=
ProductPre
;
module
.
exports
=
ProductPre
;
\ No newline at end of file
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