Merge branch '15.0.beta3' of https://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3

This commit is contained in:
hufangzhou
2021-06-01 09:29:35 +08:00
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -78,7 +78,9 @@ class programModel extends model
*/
public function getByID($programID = 0)
{
return $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($programID)->andWhere('`type`')->eq('program')->fetch();
$program = $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($programID)->andWhere('`type`')->eq('program')->fetch();
$program = $this->loadModel('file')->replaceImgURL($program, 'desc');
return $program;
}
/**
-1
View File
File diff suppressed because one or more lines are too long