- 新增epay v2、v3、v3new版本的支付类库及证书文件 - 新增cos云存储类库文件 - 调整文件上传保存格式为按分类存储 - 修复会员、规则、类目等语言翻译键名 - 新增小程序图标等静态资源文件
34 行
607 B
PHP
34 行
607 B
PHP
<?php
|
|
|
|
namespace Qcloud\Cos\ImageParamTemplate;
|
|
|
|
class ImageStyleTemplate extends ImageTemplate
|
|
{
|
|
private $style;
|
|
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->style = "";
|
|
}
|
|
|
|
public function setStyle($styleName) {
|
|
$this->style = "style/" . $styleName;
|
|
}
|
|
|
|
public function getStyle() {
|
|
return $this->style;
|
|
}
|
|
|
|
public function queryString() {
|
|
$res = "";
|
|
if($this->style) {
|
|
$res = $this->style;
|
|
}
|
|
return $res;
|
|
}
|
|
|
|
public function resetRule() {
|
|
$this->style = "";
|
|
}
|
|
}
|