ComposerUpdate

This commit is contained in:
Anyon 2019-11-28 11:22:34 +08:00
parent c714a7ab2d
commit 646c330c8d
3 changed files with 10 additions and 6 deletions

View File

@ -401,12 +401,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git", "url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "df2aa0872d2da7d3b37dd76f0816500c15280626" "reference": "7f20352fb92f249f64f9299cfdb9eda386adca86"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/df2aa0872d2da7d3b37dd76f0816500c15280626", "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/7f20352fb92f249f64f9299cfdb9eda386adca86",
"reference": "df2aa0872d2da7d3b37dd76f0816500c15280626", "reference": "7f20352fb92f249f64f9299cfdb9eda386adca86",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -426,7 +426,7 @@
"qiniu/php-sdk": "^7.2", "qiniu/php-sdk": "^7.2",
"topthink/framework": "5.1.*" "topthink/framework": "5.1.*"
}, },
"time": "2019-11-27T12:45:33+00:00", "time": "2019-11-28T03:18:19+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {

View File

@ -146,7 +146,11 @@ class CaptchaService extends Service
$_x = $this->width / $this->codelen; $_x = $this->width / $this->codelen;
for ($i = 0; $i < $this->codelen; $i++) { for ($i = 0; $i < $this->codelen; $i++) {
$this->fontcolor = imagecolorallocate($this->img, mt_rand(0, 156), mt_rand(0, 156), mt_rand(0, 156)); $this->fontcolor = imagecolorallocate($this->img, mt_rand(0, 156), mt_rand(0, 156), mt_rand(0, 156));
if (function_exists('imagettftext')) {
imagettftext($this->img, $this->fontsize, mt_rand(-30, 30), $_x * $i + mt_rand(1, 5), $this->height / 1.4, $this->fontcolor, $this->font, $this->code[$i]); imagettftext($this->img, $this->fontsize, mt_rand(-30, 30), $_x * $i + mt_rand(1, 5), $this->height / 1.4, $this->fontcolor, $this->font, $this->code[$i]);
} else {
imagestring($this->img, 15, $_x * $i + mt_rand(0, 25), mt_rand(15, 20), $this->code[$i], $this->fontcolor);
}
} }
ob_start(); ob_start();
imagepng($this->img); imagepng($this->img);

View File

@ -55,7 +55,7 @@ class ProcessService extends Service
if ($this->iswin()) { if ($this->iswin()) {
$this->exec(__DIR__ . "/bin/console.exe {$command}"); $this->exec(__DIR__ . "/bin/console.exe {$command}");
} else { } else {
$this->exec("{$command} &"); $this->exec("{$command} > /dev/null &");
} }
return $this; return $this;
} }