diff --git a/htdocs/lib/Study/StudyManager.php b/htdocs/lib/Study/StudyManager.php index dd12778..c845c53 100644 --- a/htdocs/lib/Study/StudyManager.php +++ b/htdocs/lib/Study/StudyManager.php @@ -26,8 +26,8 @@ class StudyManager { /** * 取得目前已進入的學習點 - * @param string $activity_id 活動編號 - * @return string 標的編號,若無則null + * @param int $activity_id 活動編號 + * @return int 標的編號,若無則null */ public function getCurrentInTargetId($activity_id) { diff --git a/htdocs/lib/Target/Target.php b/htdocs/lib/Target/Target.php index 7c72a88..37994a1 100644 --- a/htdocs/lib/Target/Target.php +++ b/htdocs/lib/Target/Target.php @@ -267,7 +267,7 @@ class Target { * @param int $number 學習標的目前人數 * @since 2.0.0 */ - function setMj($number){ + public function setMj($number){ $this->setUpdate('Mj', $number); } @@ -280,7 +280,7 @@ class Target { * @return int 學習標的目前人數 * @since 2.0.0 */ - function addMj($number){ + public unction addMj($number){ $setedNum = $this->queryResultArray['Mj']+$number; if($setedNum < 0) $setedNum = 0; $this->setUpdate('Mj', $setedNum);