diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index 0f9ea1e..889523e 100755 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -1808,7 +1808,7 @@ class Index extends Base var_dump($nowprift); Db::table('lc_yuebao_lists')->where('id='. $v['id']) ->update([ - 'profit_time' => ($v['profit_time'] + 86400), + 'profit_time' => $v['profit_time'] + floor(($nowtime - $v['profit_time']) / 86400)*86400, 'nowprofit' => $v['nowprofit'] + $nowprift, 'profit' => $v['profit'] + floor(($nowtime - $v['start_time']) / 86400) ]);