Merge branch 'autoTest_xieqiyu' into 'master'

Auto test xieqiyu

See merge request easycorp/zentaopms!1426
This commit is contained in:
朱金勇
2022-01-17 02:35:38 +00:00
13 changed files with 236 additions and 5 deletions
+2 -3
View File
@@ -37,7 +37,7 @@ class projectModel extends model
echo(js::alert($this->lang->project->accessDenied));
$this->session->set('project', '');
die(js::locate(helper::createLink('project', 'index')));
return print(js::locate(helper::createLink('project', 'index')));
}
/**
@@ -189,13 +189,12 @@ class projectModel extends model
* Get project info.
*
* @param string $status
* @param int $itemCounts
* @param string $orderBy
* @param int $pager
* @access public
* @return array
*/
public function getInfoList($status = 'undone', $itemCounts = 30, $orderBy = 'order_desc', $pager = null)
public function getInfoList($status = 'undone', $orderBy = 'order_desc', $pager = null)
{
/* Init vars. */
$projects = $this->loadModel('program')->getProjectList(0, $status, 0, $orderBy, $pager, 0, 1);