dever 6 years ago
parent
commit
c15643bbe2
2 changed files with 3 additions and 2 deletions
  1. 2 2
      act/lib/Subscribe.php
  2. 1 0
      journal/database/info.php

+ 2 - 2
act/lib/Subscribe.php

@@ -24,7 +24,7 @@ class Subscribe
                 $data = Dever::db('act/subscribe')->one($where);
 
                 if ($data) {
-                    Dever::cache($key, 1, 86400*300);
+                    Dever::cache($key, 1, 864000);
                     return 1;
                 } else {
                     return 2;
@@ -85,7 +85,7 @@ class Subscribe
         $info = Dever::db($table)->one($where);
 
         $key = $this->key . $uid . '_' . $id;
-        Dever::cache($key, 1, 86400*300);
+        Dever::cache($key, 1, 864000);
 
         if (!$info) {
             $where['source'] = $source;

+ 1 - 0
journal/database/info.php

@@ -419,6 +419,7 @@ $config = array
 			'match' 	=> 'option',
 			'update'	=> 'radio',
 			'option'	=> $hot,
+			'search'	=> 'select',
 			'list'		=> true,
 			'edit'		=> true,
 		),