Default Changelist
This commit is contained in:
@@ -24,6 +24,14 @@ class TransferDetail
|
|||||||
#[ArrayShape(['out_detail_no' => "string", 'transfer_amount' => "float|int", 'transfer_remark' => "string", 'openid' => "string", 'user_name' => "string"])]
|
#[ArrayShape(['out_detail_no' => "string", 'transfer_amount' => "float|int", 'transfer_remark' => "string", 'openid' => "string", 'user_name' => "string"])]
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
|
if (empty($this->user_name)) {
|
||||||
|
return [
|
||||||
|
'out_detail_no' => $this->out_detail_no,
|
||||||
|
'transfer_amount' => $this->transfer_amount,
|
||||||
|
'transfer_remark' => $this->transfer_remark,
|
||||||
|
'openid' => $this->openid,
|
||||||
|
];
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
'out_detail_no' => $this->out_detail_no,
|
'out_detail_no' => $this->out_detail_no,
|
||||||
'transfer_amount' => $this->transfer_amount,
|
'transfer_amount' => $this->transfer_amount,
|
||||||
|
|||||||
Reference in New Issue
Block a user