优化推送统一订单信息-playxId修改为用户名

This commit is contained in:
2026-05-07 14:20:45 +08:00
parent afa3750035
commit 2f8c4f4ced
7 changed files with 59 additions and 12 deletions

View File

@@ -49,6 +49,14 @@ final class MallBonusGrantPush
];
}
$memberLogin = trim(strval($asset->username ?? ''));
if ($memberLogin === '') {
return [
'ok' => false,
'message' => 'User username empty',
];
}
$item = MallItem::where('id', $order->mall_item_id)->find();
if (!$item) {
return [
@@ -79,7 +87,7 @@ final class MallBonusGrantPush
'report_date' => $reportDate,
'angpow' => [
[
'member_login' => strval($asset->playx_user_id),
'member_login' => $memberLogin,
'start_time' => $start,
'end_time' => $end,
'amount' => $order->amount,