优化推送统一订单信息-playxId修改为用户名
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user