feat: plugin controller config system with guest_comm_config hook integration

- Add HasPluginConfig trait and PluginController base class
- Integrate guest_comm_config hook in CommController for plugin frontend config injection
- Add user creation functionality to UserService and fix null value handling
- Enhance AbstractPlugin.getConfig() with key parameter support
- Multiple service layer optimizations and architecture improvements
This commit is contained in:
xboard committed 2025-06-29 01:42:48 +08:00
1 parent c414143997
commit aebd746060
16 files changed
+804 -574

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ class CaptchaService
// 检查分数阈值(如果有的话)
$score = $recaptchaResp->getScore();
$threshold = admin_setting('recaptcha_v3_score_threshold', 0.5);
if ($score !== null && $score < $threshold) {
if ($score < $threshold) {
return [false, [400, __('Invalid code is incorrect')]];
}