Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit d75d71f

Browse files
author
xiajianjun
committed
update
1 parent 5e76def commit d75d71f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/files/Captcha.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ private function drawChars()
212212
public function create()
213213
{
214214
if ($this->bgImage && is_file($this->bgImage)) {
215+
// 从背景图片建立背景画布
215216
$this->img = imagecreatefrompng($this->bgImage);
216217
} else {
217218
// 手动建立背景画布,图像资源

src/files/Picture.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ public function __construct(array $waterOptions=[], array $thumbOptions=[])
126126
$this->init();
127127
}
128128

129-
/**
130-
* @return array
131-
*/
132-
protected function init()
133-
{
134-
}
129+
protected function init() {}
135130

136131
/*********************************************************************************
137132
* add watermark

0 commit comments

Comments
 (0)