Skip to content

Commit 27c58aa

Browse files
committed
- 优化服务
1 parent 32f4f33 commit 27c58aa

File tree

9 files changed

+7485
-347
lines changed

9 files changed

+7485
-347
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
## v6.0.127 / 2020-11-26
1+
## v6.0.129 / 2020-11-26
2+
- 优化服务
3+
4+
## v6.0.128 / 2020-11-26
25
- 优化服务
36

47
## v6.0.127 / 2020-11-25

src/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* 定义当前版本
2727
*/
28-
const VERSION = '6.0.128';
28+
const VERSION = '6.0.129';
2929

3030
if (!function_exists('get_ip_info')) {
3131
/**

src/service/douyin/WatermarkService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class WatermarkService extends Service
5151
* @return $this
5252
* @throws DtaException
5353
*/
54-
public function url($str)
54+
public function url($str): self
5555
{
5656
if (Pregs::isLink($str)) {
5757
$url = $this->judgeUrl($str);

src/service/ksyun/Ks3Service.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,6 @@ public function bucket(string $bucket): self
8383
*/
8484
public function upload(string $object, string $filePath): ?bool
8585
{
86-
//是否使用VHOST
87-
define("KS3_API_VHOST", FALSE);
88-
//是否开启日志(写入日志文件)
89-
define("KS3_API_LOG", FALSE);
90-
//是否显示日志(直接输出日志)
91-
define("KS3_API_DISPLAY_LOG", FALSE);
92-
//定义日志目录(默认是该项目log下)
93-
define("KS3_API_LOG_PATH", "");
94-
//是否使用HTTPS
95-
define("KS3_API_USE_HTTPS", FALSE);
96-
//是否开启curl debug模式
97-
define("KS3_API_DEBUG_MODE", FALSE);
9886
require_once(__DIR__ . "/bin/Ks3Client.class.php");
9987
$client = new Ks3Client($this->accessKeyID, $this->accessKeySecret, $this->endpoint);
10088
$content = fopen($filePath, 'rb');

0 commit comments

Comments
 (0)