Browse Source

阿里云ES7兼容问题

maguohua 8 years ago
parent
commit
4f9164e015
2 changed files with 1 additions and 2 deletions
  1. 0 1
      controller/statis/statis.js
  2. 1 1
      controller/v2/user.js

+ 0 - 1
controller/statis/statis.js

@@ -38,7 +38,6 @@ class Statis {
 	async apiAllCount(req, res, next){
 	async apiAllCount(req, res, next){
 		try{
 		try{
 			const count = await StatisModel.count()
 			const count = await StatisModel.count()
-			console.log(count.toString())
 			res.send({
 			res.send({
 				status: 1,
 				status: 1,
 				count,
 				count,

+ 1 - 1
controller/v2/user.js

@@ -296,7 +296,7 @@ class User extends AddressComponent {
 		cityArr.forEach(item => {
 		cityArr.forEach(item => {
 			filterArr.push(UserInfoModel.find({city: item}).count())
 			filterArr.push(UserInfoModel.find({city: item}).count())
 		})
 		})
-		filterArr.push(UserInfoModel.$where('!["北京", "上海", "深圳", "杭州"].includes(this.city)').count())
+		filterArr.push(UserInfoModel.$where('!"北京上海深圳杭州".includes(this.city)').count())
 		Promise.all(filterArr).then(result => {
 		Promise.all(filterArr).then(result => {
 			res.send({
 			res.send({
 				status: 1,
 				status: 1,