fix(fsgx): 周期佣金锁与分销海报小程序码

- StoreOrderCreateServices: lockWrite 改为 lock(true),避免佣金计算整段异常
- QrcodeServices: 移除误加的 imageInfo 清空、补充小程序码失败日志
- UserBill getRoutineCode: 小程序码失败时回退为 H5 分享链接 ?spread=uid

Made-with: Cursor
This commit is contained in:
apple
2026-03-28 12:36:03 +08:00
parent ac696a8559
commit 35b6d76d50
4 changed files with 48 additions and 3 deletions

View File

@@ -1007,7 +1007,7 @@ class StoreOrderCreateServices extends BaseServices
// 锁定推荐人行,确保同一推荐人同时只有一个事务在计算位次
\think\facade\Db::name('user')
->where('uid', $spread_uid)
->lockWrite()
->lock(true)
->value('uid');
// fsgx B1推荐人自己必须有报单商品订单才能获得推荐返现佣金