明树Git Lab

Commit 25b5c2f7 authored by zfp1's avatar zfp1

update

parent c91bc3eb
......@@ -48,6 +48,7 @@ async function login(req, res, next) {
req.body.password = encArr[1];
}
const { mobile, password } = req.body;
console.log(req.body)
const user = await userModule.findUserByMobile(mobile);
if (!user) {
return res.sendError(errorMessage.loginError);
......
......@@ -75,5 +75,5 @@ const letianProductDeepSchema = new Schema({
});
const ProductDeep = mongoose.model('letianProductDeep', letianProductDeepSchema, 'letianProductDeep');
const ProductDeep = mongoose.model('ProductDeep', letianProductDeepSchema, 'letianProductDeep');
module.exports = ProductDeep;
\ No newline at end of file
......@@ -69,5 +69,5 @@ const letianProductPlantSchema = new Schema({
});
const ProductPlant = mongoose.model('letianProductPlant', letianProductPlantSchema, 'letianProductPlant');
const ProductPlant = mongoose.model('ProductPlant', letianProductPlantSchema, 'letianProductPlant');
module.exports = ProductPlant;
\ No newline at end of file
......@@ -76,5 +76,5 @@ const letianProductPreSchema = new Schema({
});
const ProductPre = mongoose.model('letianProductPre', letianProductPreSchema, 'letianProductPre');
const ProductPre = mongoose.model('ProductPre', letianProductPreSchema, 'letianProductPre');
module.exports = ProductPre;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment