dever 6 anni fa
parent
commit
fcda183194
3 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 1
      main/lib/Cron.php
  2. 1 0
      source/database/info.php
  3. 1 1
      stat/lib/Source.php

+ 1 - 1
main/lib/Cron.php

@@ -69,7 +69,7 @@ class Cron
     #电子杂志活动结束前5个时,向己有电子刊阅读权限的用户发送活动结束提醒
     public function activeEnd()
     {
-    	$time = 7200;
+    	$time = 5*3600;
     	$where['end'] = time() + $time;
         $data = Dever::db('journal/active')->getDataByTime($where);
 

+ 1 - 0
source/database/info.php

@@ -29,6 +29,7 @@ $type = array
 (
 	//1 => '购买小刊',
 	2 => '购买小刊兑换码',
+	3 => '购买VIP会员',
 );
 
 return array

+ 1 - 1
stat/lib/Source.php

@@ -37,7 +37,7 @@ class Source
         );
         $where['option'] = $option;
 
-        $source = Dever::db('source/info')->state();
+        $source = Dever::db('source/info')->state(array('type' => 2));
         $journal = Dever::db('journal/info')->state(array('buy' => 1));
 
         if ($source && $journal) {