From bc64f295510505ee43f75deceef16fc6c4c2b6dd Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 29 Apr 2021 16:09:51 +0800 Subject: [PATCH] * fix for xuanxuan. --- xuanxuan/module/im/ext/model/xuanxuan.php | 10 ++++++++++ xuanxuan/module/tree/ext/model/xuanxuan.php | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 xuanxuan/module/tree/ext/model/xuanxuan.php diff --git a/xuanxuan/module/im/ext/model/xuanxuan.php b/xuanxuan/module/im/ext/model/xuanxuan.php index 28efa54fdf..a4db385d55 100644 --- a/xuanxuan/module/im/ext/model/xuanxuan.php +++ b/xuanxuan/module/im/ext/model/xuanxuan.php @@ -18,3 +18,13 @@ public function uploadFile($fileName, $path, $size, $time, $userID, $users, $cha { return $this->loadExtension('xuanxuan')->uploadFile($fileName, $path, $size, $time, $userID, $users, $chat); } + +public function chatAddAction($chatId = '', $action = '', $actorId = '', $result = '', $comment = '') +{ + return; +} + +public function userAddAction($chatId = '', $action = '', $actorId = '', $result = '', $comment = '') +{ + return; +} diff --git a/xuanxuan/module/tree/ext/model/xuanxuan.php b/xuanxuan/module/tree/ext/model/xuanxuan.php new file mode 100644 index 0000000000..3b61ced816 --- /dev/null +++ b/xuanxuan/module/tree/ext/model/xuanxuan.php @@ -0,0 +1,15 @@ +getById($categoryID); + + if($category) + { + return $this->dao->select('id')->from(TABLE_MODULE)->where('deleted')->eq('0')->andWhere('path')->like($category->path . '%')->fetchPairs(); + } + if(!$category) + { + return $this->dao->select('id')->from(TABLE_MODULE)->where('deleted')->eq('0')->andWhere('type')->eq($type)->beginIF($root)->andWhere('root')->eq((int)$root)->fi()->fetchPairs(); + } +}