chore: 新增epay和cos插件相关类库及配置文件
- 新增epay v2、v3、v3new版本的支付类库及证书文件 - 新增cos云存储类库文件 - 调整文件上传保存格式为按分类存储 - 修复会员、规则、类目等语言翻译键名 - 新增小程序图标等静态资源文件
这个提交包含在:
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
namespace Qcloud\Cos\ImageParamTemplate;
|
||||
|
||||
/**
|
||||
* Class PicOperationsTransformation 图片处理参数 Pic-Operations
|
||||
* @package Qcloud\Cos\ImageParamTemplate
|
||||
*/
|
||||
class PicOperationsTransformation {
|
||||
private $isPicInfo;
|
||||
private $rules;
|
||||
|
||||
public function __construct() {
|
||||
$this->isPicInfo = 0;
|
||||
$this->rules = array();
|
||||
}
|
||||
|
||||
public function setIsPicInfo($value) {
|
||||
$this->isPicInfo = $value;
|
||||
}
|
||||
|
||||
public function addRule(ImageTemplate $template, $fileid = "", $bucket = "") {
|
||||
$rule = $template->queryString();
|
||||
if($rule){
|
||||
$item = array();
|
||||
$item['rule'] = $rule;
|
||||
if($fileid){
|
||||
$item['fileid'] = $fileid;
|
||||
}
|
||||
if($bucket) {
|
||||
$item['bucket'] = $bucket;
|
||||
}
|
||||
$this->rules[] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
public function getIsPicInfo() {
|
||||
return $this->isPicInfo;
|
||||
}
|
||||
|
||||
public function getRules() {
|
||||
return $this->rules;
|
||||
}
|
||||
|
||||
public function queryString() {
|
||||
$res = "";
|
||||
$picOperations = array();
|
||||
if($this->isPicInfo){
|
||||
$picOperations['is_pic_info'] = $this->isPicInfo;
|
||||
}
|
||||
if($this->rules){
|
||||
$picOperations['rules'] = $this->rules;
|
||||
}
|
||||
if($picOperations){
|
||||
$res = json_encode($picOperations);
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function resetRule() {
|
||||
$this->isPicInfo = 0;
|
||||
$this->rules = array();
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户