From 871a8c396c3576441e1a94fcaecce0dbfbd13a94 Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Sat, 28 Jun 2025 19:18:55 +0800 Subject: [PATCH] sth --- application/admin/controller/Ajax.php | 2 +- application/admin/controller/Index.php | 2 +- application/admin/controller/orders/Dispatch2.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/admin/controller/Ajax.php b/application/admin/controller/Ajax.php index 25f1ddb..921ed07 100755 --- a/application/admin/controller/Ajax.php +++ b/application/admin/controller/Ajax.php @@ -358,7 +358,7 @@ class Ajax extends Backend $to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count(); } //待跟进 - $to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count(); + $to_follow = OrderDispatch::where('follow',0)->dispatcherauth($this->auth)->count(); // return [ // 'order/index' => $to_dispatch, diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index a6b2aff..0e531f8 100755 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -70,7 +70,7 @@ class Index extends Backend $to_dispatch = $order->where('status',\app\admin\model\Order::STATUS_DISPATCHING)->count(); } //待跟进 - $to_follow = OrderDispatch::where('follow',0)->auth($this->auth)->count(); + $to_follow = OrderDispatch::where('follow',0)->dispatcherauth($this->auth)->count(); //左侧菜单 list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([ diff --git a/application/admin/controller/orders/Dispatch2.php b/application/admin/controller/orders/Dispatch2.php index 9d1c1d7..5c7c138 100644 --- a/application/admin/controller/orders/Dispatch2.php +++ b/application/admin/controller/orders/Dispatch2.php @@ -72,8 +72,8 @@ class Dispatch2 extends Backend $list = $this->model ->with(['orderb','lastRecord']) - ->auth($this->auth) - // ->dispatcherauth($this->auth) + //->auth($this->auth) + ->dispatcherauth($this->auth) ->where($where) ->order($sort, $order) ->paginate($limit);