소스 검색

Update api.php

develop
tianya 3 달 전
부모
커밋
a4330baa14
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. +9
    -1
      src/admin/api.php

+ 9
- 1
src/admin/api.php 파일 보기

@@ -353,7 +353,15 @@ if ($action === 'is_need_check_code') {
));
exit;
} else if($action === 'upload_image') {
checkLogin();
$cuserLogin = new userLogin();
if ($cuserLogin->getUserID() <= 0) {
echo json_encode(array(
"code" => -1,
"msg" => "登录系统后才能上传图片",
"data" => null,
));
exit;
}
$imgfile_name = $_FILES["file"]['name'];
$activepath = $cfg_image_dir;
$allowedTypes = array("image/pjpeg", "image/jpeg", "image/gif", "image/png", "image/xpng", "image/wbmp", "image/webp");


불러오는 중...
취소
저장