售后服务

https://guangdagit.com/beike/beikeshop/issues/241
This commit is contained in:
TL 2022-09-09 18:52:53 +08:00
parent 0d8fd327b5
commit e863b1c97b
2 changed files with 2 additions and 2 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 ?? '',
'reason' => $this->reason->name ? (json_decode($this->reason->name, true)[locale()] ?? '') : '',
'type_text' => $this->type_text,
];
}

View File

@ -42,7 +42,7 @@
</tr>
<tr>
<td>{{ __('admin/rma.reasons_return') }}</td>
<td>{{ $rma['quantity'] }}</td>
<td>{{ $rma['reason'] }}</td>
</tr>
</tbody>
</table>