dever 6 years ago
parent
commit
fb90b793fc
1 changed files with 3 additions and 2 deletions
  1. 3 2
      main/src/Content.php

+ 3 - 2
main/src/Content.php

@@ -46,8 +46,9 @@ class Content extends Core
         $time = Dever::maketime('2019-01-29 14:44:30');
         $time = Dever::maketime('2019-01-29 14:44:30');
         if ($data) {
         if ($data) {
             foreach ($data as $k => $v) {
             foreach ($data as $k => $v) {
-                echo $time;
-                print_r($v);die;
+                echo date('Y-m-d H:i:s', $time);
+                echo "\r\n";
+                echo date('Y-m-d H:i:s', $v['cdate']);
                 if ($v['cdate'] < $time && isset($id[$v['buy_id']]) && $id[$v['buy_id']]) {
                 if ($v['cdate'] < $time && isset($id[$v['buy_id']]) && $id[$v['buy_id']]) {
                     $num = $id[$v['buy_id']] - 1;
                     $num = $id[$v['buy_id']] - 1;
                     $score = $num * $info['score'];
                     $score = $num * $info['score'];