Commit 379066aa authored by zhuwei's avatar zhuwei

客户保护期兼容老数据

parent 196beebe
...@@ -332,7 +332,14 @@ class UserService ...@@ -332,7 +332,14 @@ class UserService
if(!$user_id){ if(!$user_id){
return false; return false;
} }
$res = $this->user->selectUser($user_id, "id,protect_time"); $res = $this->user->selectUser($user_id, "id,protect_time,create_time");
/*先判断客户创建时间是否超过24小时 目的是兼容老数据 2018-10-20号之后的版本可去除此处代码*/
if((time() - strtotime($res['create_time'])) < (60*60*24)){
return 0;//保护期内
}
/*目的是兼容老数据 2018-10-20号之后的版本可去除此处代码 end */
if ((time() < strtotime($res['protect_time']))) { if ((time() < strtotime($res['protect_time']))) {
return 0;//保护期内 return 0;//保护期内
}else{ }else{
......
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