售后服务

This commit is contained in:
TL 2022-09-09 19:05:44 +08:00
parent e863b1c97b
commit a761e03f5b
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class RmaDetail extends JsonResource
'product_name' => $this->product_name,
'name' => $this->name,
'sku' => $this->sku,
'reason' => $this->reason->name ? (json_decode($this->reason->name, true)[locale()] ?? '') : '',
'reason' => $this->reason ? (json_decode($this->reason->name, true)[locale()] ?? '') : '',
'type_text' => $this->type_text,
];
}