feat: 新增阿里云OSS适配器及分类图标优化
- 新增阿里云OSS SDK核心类库文件 - 新增OSS插件配置文件及钩子监听 - 新增分类图标SVG资源并优化为轻量化格式 - 替换定位接口为天地图逆地理编码接口 - 新增OSS图片缩略处理工具方法
这个提交包含在:
36
addons/alioss/library/File.php
普通文件
36
addons/alioss/library/File.php
普通文件
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace addons\alioss\library;
|
||||
|
||||
/**
|
||||
* 文件类
|
||||
*/
|
||||
class File extends \think\File implements \ArrayAccess
|
||||
{
|
||||
|
||||
public function __construct($filename, $mode = 'r')
|
||||
{
|
||||
|
||||
parent::__construct($filename, $mode);
|
||||
}
|
||||
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->info[$offset]);
|
||||
}
|
||||
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return $this->info[$offset];
|
||||
}
|
||||
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
$this->info[$offset] = $value;
|
||||
}
|
||||
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->info[$offset]);
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户