|
@@ -13,6 +13,16 @@ Class Home extends Core
|
|
$config = Dever::db('active/info')->config['config_act_status'];
|
|
$config = Dever::db('active/info')->config['config_act_status'];
|
|
foreach($data['info'] as $k=>$v){
|
|
foreach($data['info'] as $k=>$v){
|
|
$data['info'][$k]['act_status_name'] = Dever::status($config,$v['act_status']);
|
|
$data['info'][$k]['act_status_name'] = Dever::status($config,$v['act_status']);
|
|
|
|
+ if ($v['sign_start']) {
|
|
|
|
+ $ids = Dever::load('active/lib/cron')->start($v['cdate'],$v['act_start'],$v['act_end'],$v['sign_start'],$v['sign_end']);
|
|
|
|
+ } else {
|
|
|
|
+ $ids = Dever::load('active/lib/cron')->start($v['cdate'],$v['act_start'],$v['act_end']);
|
|
|
|
+ }
|
|
|
|
+ if (isset($ids) && $ids) {
|
|
|
|
+ $where['where_id'] = $v['id'];
|
|
|
|
+ $where['act_status'] = $ids['act_status'];
|
|
|
|
+ Dever::db('active/info')->update($where);
|
|
|
|
+ }
|
|
if ($v['act_status'] == 2) {
|
|
if ($v['act_status'] == 2) {
|
|
if ($v['sign_end']) {
|
|
if ($v['sign_end']) {
|
|
$day = floor(($v['sign_end'] - time())/86400);
|
|
$day = floor(($v['sign_end'] - time())/86400);
|