优化推送统一订单信息-playxId修改为用户名
This commit is contained in:
@@ -72,5 +72,13 @@ class MallOrder extends Model
|
||||
{
|
||||
return $this->belongsTo(MallAddress::class, 'mall_address_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单 user_id 存 playX 侧用户标识字符串,与 mall_user_asset.playx_user_id 对齐。
|
||||
*/
|
||||
public function mallUserAsset(): \think\model\relation\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(MallUserAsset::class, 'user_id', 'playx_user_id');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user