|
@@ -254,16 +254,16 @@ class session_helper
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ $author_time = $_SESSION['wxauthor_time'];
|
|
|
+ $max_time = 2 * 86400;
|
|
|
+ if(time() - $author_time > $max_time) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
if(!empty($_SESSION['member_wxunionid']) && !empty($_SESSION['member_wxopenid']))
|
|
|
{
|
|
|
- $author_time = $_SESSION['wxauthor_time'];
|
|
|
- $max_time = 2 * 86400;
|
|
|
- if(time() - $author_time > $max_time) {
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+ return false;
|
|
|
}
|
|
|
else {
|
|
|
return true;
|