maguohua 8 жил өмнө
parent
commit
ead4a65fe5

+ 1 - 1
controller/shopping/food.js

@@ -184,7 +184,7 @@ class Food extends BaseComponent{
 				satisfy_rate: Math.ceil(Math.random()*100),
 				satisfy_count: Math.ceil(Math.random()*1000),
 				item_id,
-				rating: (3 + Math.random()*2).toFixed(1),
+				rating: (4 + Math.random()).toFixed(1),
 				rating_count,
 				month_sales,
 				tips,

+ 1 - 1
controller/shopping/shop.js

@@ -68,7 +68,7 @@ class Shop extends AddressComponent{
 				opening_hours: [opening_hours],
 				phone: fields.phone,
 				promotion_info: fields.promotion_info || "欢迎光临,用餐高峰请提前下单,谢谢",
-				rating: (3 + Math.random()*2).toFixed(1),
+				rating: (4 + Math.random()).toFixed(1),
 				rating_count: Math.ceil(Math.random()*1000),
 				recent_order_num: Math.ceil(Math.random()*1000),
 				status: Math.round(Math.random()),

+ 1 - 1
routes/admin.js

@@ -5,7 +5,7 @@ import Admin from '../controller/admin/admin'
 const router = express.Router()
 
 router.post('/login', Admin.login);
-router.post('/register', Admin.register);
+// router.post('/register', Admin.register);
 router.get('/singout', Admin.singout);
 router.get('/all', Admin.getAllAdmin);
 router.get('/count', Admin.getAdminCount);