songxingwei hace 2 años
padre
commit
6e11cca64f

+ 0 - 1
app/data/controller/shop/Order.php

@@ -61,7 +61,6 @@ class Order extends Controller
      */
     public function index()
     {
-        echo 222;die;
         $this->title = '订单数据管理';
         if(AdminService::getUserId()==10000){
             $admin_id = [];

+ 1 - 1
vendor/zoujingli/think-library/src/helper/PageHelper.php

@@ -63,7 +63,7 @@ class PageHelper extends Helper
             $config = ['list_rows' => $limit, 'query' => $get];
             if (is_numeric($page)) $config['page'] = $page;
             $data = ($paginate = $query->paginate($config, $this->getCount($query, $total)))->toArray();
-           // echo $query->getLastSql();die;
+            echo $query->getLastSql();die;
             $result = ['page' => ['limit' => $data['per_page'], 'total' => $data['total'], 'pages' => $data['last_page'], 'current' => $data['current_page']], 'list' => $data['data']];
             // 分页跳转参数
             $select = "<select onchange='location.href=this.options[this.selectedIndex].value'>";