6
0
Fork 0

调整资金列表N+1问题

release
vine_liutk 2022-02-23 11:18:35 +08:00
parent 2a3f6c6953
commit 56462f8530
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class DealerEarningSimpleResource extends JsonResource
'status' => $this->status_format,
'status_name' => $this->status_name,
'is_payer' => $this->payer_id ? ($this->payer_id == $request->user()->id) : false,
'beneficiary_phone' => $this->user?->phone ?? '',
'beneficiary_phone' => (string) $this->whenLoaded('user', $this->user->phone, ''),
// 'settle_at'
];
}