Thinkphp3.2.3加载外部类并调用类里面的方法 获取token
例如:加载七牛上传类(thinkphp自带的)
$qiniu = new \Think\Upload\Driver\Qiniu\QiniuStorage($setting['driverConfig']);
echo $qiniu->UploadToken($setting['driverConfig']['secretKey'],$setting['driverConfig']['accessKey']);
例如:加载七牛上传类(thinkphp自带的)
$qiniu = new \Think\Upload\Driver\Qiniu\QiniuStorage($setting['driverConfig']);
echo $qiniu->UploadToken($setting['driverConfig']['secretKey'],$setting['driverConfig']['accessKey']);