* Modify case of dev module.

This commit is contained in:
tianshujie
2023-03-08 13:23:51 +08:00
parent 58b175c453
commit b317cd89a5
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -666,7 +666,7 @@ class devModel extends model
public function getTagMenus($module, $moduleName = '', $methodName = '')
{
$menus = array();
if($this->config->vision == 'lite' and $module == 'execution') return $menus;
if(!$module or ($this->config->vision == 'lite' and $module == 'execution')) return $menus;
$titleList = array();
$tagMethods = array();
+3 -3
View File
@@ -13,14 +13,14 @@ cid=1
pid=1
检查传入空值时的情况 >> 0
检查传入地盘导航顺序 >> index,calendar,work,audit,project,execution,contribute,dynamic,score,contacts,
检查传入产品导航顺序 >> dashboard,story,plan,project,release,roadmap,track,doc,dynamic,settings,
*/
global $tester;
$menuList[0] = array();
$menuList[1] = $tester->lang->my->menu;
$menuList[1] = $tester->lang->product->menu;
$devTester = new devTest();
r($devTester->sortMenusTest($menuList[0])) && p() && e('0'); // 检查传入空值时的情况
r($devTester->sortMenusTest($menuList[1])) && p() && e('index,calendar,work,audit,project,execution,contribute,dynamic,score,contacts,'); // 检查传入地盘导航顺序
r($devTester->sortMenusTest($menuList[1])) && p() && e('dashboard,story,plan,project,release,roadmap,track,doc,dynamic,settings,'); // 检查传入产品导航顺序