23 Commits

Author SHA1 Message Date
Anyon
d5e9524a89 fix: Normalize README formatting and punctuation
Standardize README files: update think-library header to 'ThinkLibrary for ThinkAdmin', bold numbered feature headings for clarity, and normalize punctuation/line endings across multiple plugin READMEs (think-plugs-account, think-plugs-center, think-plugs-helper, think-plugs-payment, think-plugs-wechat, think-plugs-wemall, think-plugs-worker, think-plugs-wuma) for consistent style and readability.
2026-02-03 14:41:01 +08:00
邹景立
34104dad22 Update plugin headers and add rewrite-model script
Replace header text "Payment Plugin for ThinkAdmin" with "ThinkAdmin Plugin for ThinkAdmin" across project files (configs, controllers, plugins, php-cs-fixer, etc.) to unify branding. Add a new composer script "rewrite-model" to regenerate models and run php-cs-fixer. Also apply a minor newline fix in .copilot-commit-message-instructions.md.
2026-02-01 14:24:36 +08:00
邹景立
63523902db style: 为插件新增 .php-cs-fixer 配置
在多个插件目录(包括 plugin/think-library 及多个 think-plugs-*)新增 .php-cs-fixer.php 文件以统一 PHP 代码风格和头部注释。配置启用严格类型声明、并行运行、常用规则集(@PSR2/@Symfony/@PhpCsFixer 等)以及若干自定义规则,便于代码格式统一与自动修复;同时调整了 .copilot-commit-message-instructions.md 的换行样式。
2026-02-01 14:18:47 +08:00
邹景立
987ad41765 fix: Add .php-cs-fixer.php and update many files
Add PHP CS Fixer configuration (.php-cs-fixer.php) to enforce coding style and apply corresponding updates across the codebase. Numerous plugins (think-library and many think-plugs-*) and core config files (cache, database, phinx, worker) were updated along with controllers, services, models, storage adapters, helpers and tests to conform to style fixes and minor compatibility/refactors.
2026-02-01 02:01:37 +08:00
邹景立
6b3e985747 fix: Use BC Math for payments; fix wemall; add docs
Convert monetary/integral fields to string and switch arithmetic to BC Math to avoid floating-point errors; adjust return types to strings where appropriate (Balance, Integral, PaymentUsageTrait, IntegralPayment). Add input validation and safer comparisons in payment checks. Fix wemall logic and typos (early return for canceled/refunded orders, rename/logic fixes in UserRebate, initialize temporary $code variables, correct timestamp field name, adjust reward calculations to use bcmath, change wRebate signature). Add a database migration to enforce constraints, add new columns and indexes for wemall and payment tables. Also add business-feature documentation blocks across multiple plugin README files and update the project README.
2026-02-01 01:30:19 +08:00
邹景立
37db1bdda9 批量更新版权注释 2025-04-10 21:52:11 +08:00
邹景立
45ecf1f549 fix: 更新注释及开放Helper工具包 2025-03-01 22:33:38 +08:00
邹景立
ec768a6e2a 更新 Github 脚本 2025-02-24 13:58:39 +08:00
邹景立
f3bc37e772 去除不需要的 use 代码 2025-01-08 11:06:06 +08:00
邹景立
a4e98a066a fix: worker 插件增加 workerman 5.x 兼容 2025-01-08 11:04:48 +08:00
邹景立
a85cdf49d8 fix: 由于部分使用场景异常,去除文件动态监听与内存监控重启 2024-12-18 14:55:22 +08:00
邹景立
3550bbe68b fix: Worker 增加 $statusFile 变量默认设置 2024-11-14 11:28:28 +08:00
邹景立
62f8b0471d fix: Worker 增加 $statusFile 变量默认设置 2024-11-08 22:27:53 +08:00
邹景立
e7ec32ad07 fix: 优化 Worker Host 接收逻辑 2024-08-14 10:22:37 +08:00
邹景立
04f82f46e9 fix: 增加 Nginx 代理配置文档 2024-08-14 10:20:38 +08:00
邹景立
d7a50742f2 fix: 优化代理域名及端口读取 2024-08-14 09:35:02 +08:00
邹景立
6067f9778b fix: 修改文件注释,格式化代码 2024-08-08 23:28:08 +08:00
邹景立
9aab0a55b1 fix: 修改项目文档说明 2024-08-05 23:58:38 +08:00
邹景立
0cded14ac3 fix: 修改文档描述 2024-08-05 23:54:34 +08:00
邹景立
c5225c0dba fix: 更新 Github Actions 自动 Release 脚本 2024-08-04 14:46:37 +08:00
邹景立
57a559568f update: 更新项目说明 2024-08-03 23:06:37 +08:00
邹景立
9a404066f4 修正库存主语言 2024-08-02 09:12:21 +08:00
邹景立
ce7375ce87 增加 Github Actions 脚本 2024-08-02 08:45:48 +08:00