* fix for xuanxuan.

This commit is contained in:
wangyidong
2021-04-29 16:09:51 +08:00
parent b8d1cc17d8
commit bc64f29551
2 changed files with 25 additions and 0 deletions
+10
View File
@@ -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;
}
@@ -0,0 +1,15 @@
<?php
public function getFamily($categoryID, $type = '', $root = 0)
{
if($categoryID == 0 and empty($type)) return array();
$category = $this->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();
}
}