6
This commit is contained in:
@@ -92,7 +92,7 @@ class FilesController extends Crud
|
||||
}
|
||||
$mimetype = explode(',',Config('site.upload_mimetype'));
|
||||
$maxsize = Config('site.upload_maxsize')*1024*1024;
|
||||
$result = Storage::adapter('minio')
|
||||
$result = Storage::adapter('oss')
|
||||
->path($savePath)
|
||||
->size($maxsize)
|
||||
->extYes($mimetype)
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
var require = {
|
||||
config: {$config| json_encode=JSON_UNESCAPED_UNICODE|raw}
|
||||
};
|
||||
window.Config = require.config;
|
||||
var user = {$user|json_encode|raw};
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -5,7 +5,7 @@ requirejs.config({
|
||||
baseUrl: window.Config.cdnurl+window.Config.admin_path+'/js/',
|
||||
packages: [{
|
||||
name: 'moment',
|
||||
location: '../libs/moment',
|
||||
location: window.Config.admin_path+'/libs/moment',
|
||||
main: 'moment'
|
||||
}],
|
||||
paths: {
|
||||
@@ -48,7 +48,7 @@ requirejs.config({
|
||||
},
|
||||
map: {
|
||||
'*': {
|
||||
'css': '../libs/require-css.min.js' // or whatever the path to require-css is
|
||||
'css': window.Config.admin_path+'/libs/require-css.min.js' // or whatever the path to require-css is
|
||||
}
|
||||
},
|
||||
shim: {
|
||||
|
||||
@@ -98,7 +98,7 @@ define(['lightyear','multitabs', '../libs/Chart','form','bootstrap'], function (
|
||||
init: [{
|
||||
type: 'main',
|
||||
title: '首页',
|
||||
url: 'index/'+Config.fixedpage
|
||||
url: Fast.api.fixurl('index/'+Config.fixedpage)
|
||||
}]
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user