dever 6 年之前
父節點
當前提交
8b7c028927
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      stat/lib/Journal.php

+ 2 - 2
stat/lib/Journal.php

@@ -10,7 +10,7 @@ class Journal
 
     public function data_api()
     {
-        
+
     }
     /**
      * 获取数据-可以放到cron里
@@ -56,7 +56,7 @@ class Journal
     {
         # 这里就是为了做下sql的实现方式,其实用dever自带的功能完全可以实现。
         $day = date('Y-m-d', $where['start']);
-        $sql = 'select * from applet_passport_wechat where type = 1 and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
+        $sql = 'select * from wonderful_journal_order where type = 1 and product_id = '.$info['id'].' and state = 1 and cdate >= '.$where['start'].' and cdate <= '.$where['end'];
         echo $sql;
         $order = Dever::db('journal/order')->fetchAll($sql);
         print_r($order);