Skip to content

cos800/ThinkTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

配置

/config/app.php 添加以下配置

    'upload' => [
        'root_path' => './uploads/',
        'base_url' => "http://{$_SERVER['HTTP_HOST']}/uploads/",
        'size' => 512000,
        'ext' => 'jpg,jpeg,png,gif',
    ],

    'wxmp' => [
        'appid' => '小程序 APP ID',
        'secret' => '小程序 APP Secret',
    ]

路由

/route/route.php 添加以下路由

Route::any('api/upload/:subdir', '\\tt\\UploadController@index');

About

TT, ThinkPHP Tools, Tp Tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages