Commit b5b91402 authored by strong's avatar strong

Merge branch 'behavior_limition_remould'

parents d1b86a01 4fa7b2d6
...@@ -27,14 +27,14 @@ function date_format(date) { ...@@ -27,14 +27,14 @@ function date_format(date) {
//判断时间是否在指定范围 //判断时间是否在指定范围
function compareTime(now, begin_time, end_time) { function compareTime(now, begin_time, end_time) {
now = date_format(now); var begin_time = new Date(begin_time).getTime(),
begin_time = date_format(begin_time); ent_time = new Date(end_time).getTime(),
end_time = date_format(end_time); this_now = new Date(now).getTime();
if (moment(now).isSame(begin_time) || moment(now).isSame(end_time)) { //如果等于开始时间或者结束时间 if(this_now >= begin_time && this_now <= ent_time){
return true; return true;
} else { }else{
return moment(now).isBetween(begin_time, end_time); return false;
} }
} }
...@@ -96,15 +96,11 @@ router.get('/user/from/share', function(req, res, next) { ...@@ -96,15 +96,11 @@ router.get('/user/from/share', function(req, res, next) {
} }
} }
}); });
// httpService.sendRequest(ent_code,mid,action);
// res.status(200).end();
}); });
//检查用户权限 旧版 //检查用户权限 旧版
router.post('/user/checkLimitAction', function(req, res, next) { router.post('/user/checkLimitAction', function(req, res, next) {
var entity=req.body; var userId = req.body.userId;
var userId = entity.mid;
if(userId){ if(userId){
var array = []; var array = [];
......
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