dever 3 tahun lalu
induk
melakukan
0746260597
2 mengubah file dengan 23 tambahan dan 1 penghapusan
  1. 22 0
      main/src/Api.php
  2. 1 1
      package/manage/plugin/Console.php

+ 22 - 0
main/src/Api.php

@@ -19,4 +19,26 @@ class Api
 
         return $result;
     }
+
+    # 获取帮助列表
+    public function help()
+    {
+        $type = Dever::input('type', 1);
+        if (!$type) {
+            Dever::alert('您访问的页面有误');
+        }
+        $where['type'] = $type;
+        $data = Dever::db('main/help')->select_page($where);
+
+        return $data;
+    }
+
+    # 获取帮助详情
+    public function help_view()
+    {
+        $id = Dever::input('id');
+        $data = Dever::db('main/help')->find($id);
+
+        return $data;
+    }
 }

+ 1 - 1
package/manage/plugin/Console.php

@@ -9,7 +9,7 @@ class Console
     public function data()
     {
         $where['start'] = Dever::maketime(date('Y-m-d 00:00:00'));
-        $where['end'] = Dever::maketime(date('Y-m-d 59:59:59'));
+        $where['end'] = Dever::maketime(date('Y-m-d 23:59:59'));
 
         $where['status'] = '1,2,3,4';
         $today_sell_cash = Dever::db('shop/sell_order')->getCashNum($where);