落地合伙股东收益体系,并纳入 sheep 用户端源码。

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
chen
2026-09-17 07:47:35 +08:00
父节点 7747dfaa82
当前提交 251d62296e
共有 595 个文件被更改,包括 90234 次插入 和 105 次删除

查看文件

@@ -0,0 +1,30 @@
<?php
namespace addons\shopro\job;
use think\queue\Job;
use think\Db;
use think\exception\HttpResponseException;
use addons\shopro\service\partner\PartnerRewardService;
class PartnerSettle extends BaseJob
{
public function order(Job $job, $payload)
{
try {
$orderId = $payload['order_id'] ?? 0;
if ($orderId) {
Db::transaction(function () use ($orderId) {
(new PartnerRewardService())->settleOrder($orderId);
});
}
$job->delete();
} catch (HttpResponseException $e) {
$data = $e->getResponse()->getData();
$message = $data ? ($data['msg'] ?? '') : $e->getMessage();
format_log_error($e, 'PartnerSettle.HttpResponseException', $message);
} catch (\Exception $e) {
format_log_error($e, 'PartnerSettle');
}
}
}