Browse Source

Update api.php

支持游客投稿,上传文件,会员组大于0
dedebizadmins
叙述、别离 7 months ago
parent
commit
db544d061c
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/user/api.php

+ 2
- 3
src/user/api.php View File

@@ -60,7 +60,7 @@ if ($action === 'is_need_check_code') {
), ),
)); ));
} else if ($action === 'upload') { } else if ($action === 'upload') {
if (!$cfg_ml->IsLogin()) {
if (!$cfg_ml->IsLogin() && $cfg_ml->M_Type['sendrank'] < 0) {
echo json_encode(array( echo json_encode(array(
"code" => -1, "code" => -1,
"uploaded" => 0, "uploaded" => 0,
@@ -134,7 +134,6 @@ if ($action === 'is_need_check_code') {
"message" => "不支持该文件格式", "message" => "不支持该文件格式",
), ),
)); ));
exit; exit;
} }
//获取扩展名 //获取扩展名
@@ -249,7 +248,7 @@ if ($action === 'is_need_check_code') {
} }
} else { } else {
$format = isset($format) ? "json" : ""; $format = isset($format) ? "json" : "";
if (!$cfg_ml->IsLogin()) {
if (!$cfg_ml->IsLogin() && $cfg_ml->M_Type['sendrank'] < 0) {
if ($format === 'json') { if ($format === 'json') {
echo json_encode(array( echo json_encode(array(
"code" => -1, "code" => -1,


Loading…
Cancel
Save