邹景立
f040b20da3
fix(wechat): 修复网页授权登录在空查询参数下的 parse_str 类型报错
...
- getWebOauthInfo 中先解析 query 再做字符串兜底
- 避免 source 无 query 时 parse_str 接收 null/false 导致 TypeError
- 保持原有 code/rcode/state 参数解析逻辑不变
2026-03-03 22:06:58 +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
邹景立
d2b499d14a
refactor: 使用 BC Math 替换浮点运算以提高精度
...
将多处基于浮点的数值计算替换为 BC Math 字符串运算以避免浮点精度问题,涉及支付、退款、转账、比较与统计逻辑的重构。主要改动包括:
- 将比较与判断替换为 bccomp,累加与合并使用 bcadd,乘以 100 等使用 bcmul;
- 将部分初始数值与统计结果从数值类型改为字符串形式(如 '0.00'),并调整相关返回类型(如 Payment::paidAmount 改为返回 string);
- 修正订单/退款金额计算与超额校验逻辑以使用高精度算术;
- 更新微信支付相关 SDK 调用中金额乘 100 的计算以避免精度误差;
- 在若干插件中用高精度运算替换 floatval/int 转换(包括 SystemQueue、Wemall、Wuma 等);
- 更新文档(readme)添加 BC Math/高精度计算等说明并统一版权年份至 2014-2026;
- 新增 .copilot-commit-message-instructions.md(提交信息规范)。
此改动旨在增强金融/金额相关业务的计算正确性与一致性,避免因浮点运算导致的金额误差。
2026-02-01 13:27:10 +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
Anyon
e49fa0ac4e
fix: 完善并增加多语言包
2025-11-17 12:37:22 +08:00
邹景立
7cbf6e6163
fix: 修正公众号切换显示异常
2025-05-03 12:20:42 +08:00
邹景立
460e06bdf2
fix: 更新 layui 升级导致的 jQuery 兼容问题
2025-03-20 16:58:54 +08:00
邹景立
422f030eb1
fix: 更新微信模型字段类型处理,兼容高版本ThinkORM
2025-03-19 14:22:01 +08:00
邹景立
eadecf8f1a
fix: 去除微信配置表单验证
2025-03-19 14:12:38 +08:00
邹景立
74ea4fdbc2
Update WechatService.php
2025-03-19 11:20:11 +08:00
邹景立
d30d0f393b
fix: 统计 WechatService::getConfig 参数
2025-03-19 10:56:07 +08:00
邹景立
58859b98cc
fix: 修改微信配置
2025-03-19 10:48:41 +08:00
邹景立
c860a90b2c
fix: 统一更新HTML模板头部定义
2025-03-13 14:51:39 +08:00
邹景立
7a1ad4e5f3
Update payment.html
2025-03-04 14:27:33 +08:00
邹景立
4ec77501cd
更新配置
2025-03-04 14:26:33 +08:00
邹景立
ab40022482
fix: 微信支付公钥改为可选
2025-03-04 14:11:20 +08:00
邹景立
6adf4c9120
fix: 更新微信参数配置
2025-03-04 14:02:27 +08:00
邹景立
3572908808
fix: 更新微信配置文件
2025-03-04 13:49:31 +08:00
邹景立
3a9f6e88b6
fix: 更新微信支付配置参数,标准化存储
2025-03-04 10:42:04 +08:00
邹景立
ab661096f2
Update PaymentService.php
2025-03-04 00:28:07 +08:00
邹景立
f55f0c137e
Update PaymentService.php
2025-03-04 00:13:52 +08:00
邹景立
8805a2b172
fix: 标准化微信支付配置
2025-03-04 00:05:31 +08:00
邹景立
f176fea5c7
Update PaymentService.php
2025-03-03 23:34:03 +08:00
邹景立
5099f49b00
fix: 修改支付通知处理
2025-03-03 23:07:18 +08:00
邹景立
d338a8fc8c
fix: 修改微信V3支付配置及调用DEMO
2025-03-03 22:46:02 +08:00
邹景立
320a2220f7
Update payment.html
2025-03-03 21:05:08 +08:00
邹景立
1b2afe18c1
fix: 更新微信支付配置
2025-03-03 21:03:00 +08:00
邹景立
88ff71b5a2
fix: 更新所有模型的字段IDE提示注释
2025-03-01 22:26:05 +08:00
邹景立
6cc8ae3589
fix: 批量更新文件注释
2025-03-01 22:25:38 +08:00
邹景立
ce7375ce87
增加 Github Actions 脚本
2024-08-02 08:45:48 +08:00