4250d0bc by sayhoChun

board/comment modify unhandled

1 parent 2afe39d5
......@@ -226,6 +226,42 @@ if (! class_exists("ApiBoard"))
}
}
function modifyBoard(){ //미완성
$imgResult = $this->inFn_Common_fileSave($_FILES);
$title=$this->req["title"];
//$userFk = $this->appUser["no"];
$userFk=$this->req["userFk"];
$imgPathBoard1 = $imgResult["imgPathBoard1"]["saveURL"] != null ? $imgResult["imgPathBoard1"]["saveURL"] : $this->req["imgPathBoard1"];
$imgPathBoard2 = $imgResult["imgPathBoard2"]["saveURL"] != null ? $imgResult["imgPathBoard2"]["saveURL"] : $this->req["imgPathBoard2"];
$imgPathBoard3 = $imgResult["imgPathBoard3"]["saveURL"] != null ? $imgResult["imgPathBoard3"]["saveURL"] : $this->req["imgPathBoard3"];
$imgPathBoard4 = $imgResult["imgPathBoard4"]["saveURL"] != null ? $imgResult["imgPathBoard4"]["saveURL"] : $this->req["imgPathBoard4"];
$imgPathBoard5 = $imgResult["imgPathBoard5"]["saveURL"] != null ? $imgResult["imgPathBoard5"]["saveURL"] : $this->req["imgPathBoard5"];
$content=$this->req["content"];
$sql="
INSERT INTO tblBoard(userFk, title, imgPathBoard1, imgPathBoard2, imgPathBoard3, imgPathBoard4, imgPathBoard5, content, status, regDate)
VALUES
(
'{$userFk}',
'{$title}',
'{$imgPathBoard1}',
'{$imgPathBoard2}',
'{$imgPathBoard3}',
'{$imgPathBoard4}',
'{$imgPathBoard5}',
'{$content}',
1,
NOW()
)
";
$this->update($sql);
return $this->makeResultJson("1", "저장되었습니다");
}
//고객센터 게시물 저장
function saveCS(){
$imgResult = $this->inFn_Common_fileSave($_FILES);
......