Compare commits
2 Commits
6768dc38d0
...
a447f563a2
| Author | SHA1 | Date | |
|---|---|---|---|
| a447f563a2 | |||
| 9b5ec7b410 |
@@ -4,3 +4,4 @@
|
|||||||
*.log
|
*.log
|
||||||
*.env
|
*.env
|
||||||
/runtime/*
|
/runtime/*
|
||||||
|
/config/database.php
|
||||||
@@ -83,7 +83,7 @@ class Module extends BaseController
|
|||||||
}
|
}
|
||||||
$param = get_params();
|
$param = get_params();
|
||||||
$name = $param['name'];
|
$name = $param['name'];
|
||||||
$data = curl_post('https://www.gougucms.com/home/get_module/module',['name'=>$name]);
|
$data = curl_post('https://oa.lwzone.top/home/get_module/module',['name'=>$name]);
|
||||||
$json_data = json_decode($data, true);
|
$json_data = json_decode($data, true);
|
||||||
if($json_data['code'] == 1){
|
if($json_data['code'] == 1){
|
||||||
return to_assign(1,$json_data['msg']);
|
return to_assign(1,$json_data['msg']);
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ return [
|
|||||||
// 数据库类型
|
// 数据库类型
|
||||||
'type' => 'mysql',
|
'type' => 'mysql',
|
||||||
// 服务器地址
|
// 服务器地址
|
||||||
'hostname' => '1Panel-mysql-jQfe',
|
'hostname' => 'lwzone.top',
|
||||||
// 数据库名
|
// 数据库名
|
||||||
'database' => 'oa',
|
'database' => 'oa',
|
||||||
// 用户名
|
// 用户名
|
||||||
|
|||||||
+1
-2
@@ -211,7 +211,7 @@ class Captcha
|
|||||||
$this->fontttf = $ttfs[array_rand($ttfs)];
|
$this->fontttf = $ttfs[array_rand($ttfs)];
|
||||||
}
|
}
|
||||||
|
|
||||||
$fontttf = $ttfPath . $this->fontttf;
|
$fontttf = (strpos($this->fontttf, ':/') !== false || strpos($this->fontttf, ':\\') !== false || $this->fontttf[0] === '/') ? $this->fontttf : $ttfPath . $this->fontttf;
|
||||||
|
|
||||||
// 添加干扰项
|
// 添加干扰项
|
||||||
foreach ($this->interfere as $type => $method) {
|
foreach ($this->interfere as $type => $method) {
|
||||||
@@ -229,7 +229,6 @@ class Captcha
|
|||||||
$x = $this->fontSize * ($index + 1) * ($this->math ? 1 : 1.5);
|
$x = $this->fontSize * ($index + 1) * ($this->math ? 1 : 1.5);
|
||||||
$y = $this->fontSize + mt_rand(10, 20);
|
$y = $this->fontSize + mt_rand(10, 20);
|
||||||
$angle = $this->math ? 0 : mt_rand(-40, 40);
|
$angle = $this->math ? 0 : mt_rand(-40, 40);
|
||||||
|
|
||||||
imagettftext($this->im, (int) $this->fontSize, $angle, (int) $x, (int) $y, $this->color, $fontttf, $char);
|
imagettftext($this->im, (int) $this->fontSize, $angle, (int) $x, (int) $y, $this->color, $fontttf, $char);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user