فهرست منبع

保护默认餐馆

maguohua 7 سال پیش
والد
کامیت
c217669f13
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      controller/shopping/shop.js

+ 7 - 0
controller/shopping/shop.js

@@ -442,6 +442,13 @@ class Shop extends AddressComponent{
 			})
 			return 
 		}
+		if (restaurant_id == 1) {
+				res.send({
+					status: 0,
+					message: '此店铺用做展示,请不要删除'
+				})
+				return
+			}
 		try{
 			await ShopModel.remove({id: restaurant_id});
 			res.send({