Compare commits

...

2 Commits

Author SHA1 Message Date
Lwei a447f563a2 Merge branch 'main' of https://git.lwzone.top/lwei/OA 2026-07-23 16:20:51 +08:00
Lwei 9b5ec7b410 update code 2026-07-23 16:20:45 +08:00
4 changed files with 4 additions and 4 deletions
+1
View File
@@ -4,3 +4,4 @@
*.log
*.env
/runtime/*
/config/database.php
+1 -1
View File
@@ -83,7 +83,7 @@ class Module extends BaseController
}
$param = get_params();
$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);
if($json_data['code'] == 1){
return to_assign(1,$json_data['msg']);
+1 -1
View File
@@ -16,7 +16,7 @@ return [
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => '1Panel-mysql-jQfe',
'hostname' => 'lwzone.top',
// 数据库名
'database' => 'oa',
// 用户名
+1 -2
View File
@@ -211,7 +211,7 @@ class Captcha
$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) {
@@ -229,7 +229,6 @@ class Captcha
$x = $this->fontSize * ($index + 1) * ($this->math ? 1 : 1.5);
$y = $this->fontSize + mt_rand(10, 20);
$angle = $this->math ? 0 : mt_rand(-40, 40);
imagettftext($this->im, (int) $this->fontSize, $angle, (int) $x, (int) $y, $this->color, $fontttf, $char);
}