Browse Source

add config for api/config

master
filesite 2 years ago
parent
commit
467c293228
  1. 1
      conf/app.php
  2. 1
      controller/ApiController.php

1
conf/app.php

@ -63,6 +63,7 @@ $configs = array( @@ -63,6 +63,7 @@ $configs = array(
'password' => '88888888',
'captcha' => true, //后台登陆是否开启验证码
'maxUploadFileNumber' => 5, //一次批量上传文件数量
'maxUploadFileSize' => 20, //单位:Mb
'allowedUploadFileTypes' => array(
'image/jpeg',

1
controller/ApiController.php

@ -793,6 +793,7 @@ Class ApiController extends Controller { @@ -793,6 +793,7 @@ Class ApiController extends Controller {
$data['admin_captcha'] = $configs['admin']['captcha'];
$data['admin_maxUploadFileSize'] = $configs['admin']['maxUploadFileSize'] * 1024*1024;
$data['admin_supportedFileTypes'] = $configs['admin']['allowedUploadFileTypes'];
$data['admin_maxUploadFileNumber'] = $configs['admin']['maxUploadFileNumber'];
$code = 1;
$msg = '';

Loading…
Cancel
Save