management integration start

This commit is contained in:
merdan 2022-05-30 13:52:08 +05:00
parent 195ab2c022
commit a47183ddd2
2 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,7 @@ class IntegrationController extends Controller
public function updateOrderStatus(){
Log::info(request()->input());
//todo update order status,
}
}

View File

@ -54,7 +54,7 @@ class ProductVariant extends JsonResource
if(is_countable($this->attributes)){
return $this->attributes->map(function($item, $key){
return [
'code' => $item->code,
'code' => $item->id,
'value' => $this->{$item->code},
'name' => $item->name??$item->admin_name,
'label' => $item->options->where('id',$this->{$item->code})->first()->admin_name
@ -63,7 +63,7 @@ class ProductVariant extends JsonResource
}else{
$item = $this->attributes;
return [
'code' => $item->code,
'code' => $item->id,
'value' => $this->{$item->code},
'name' => $item->name??$item->admin_name,
'label' => $item->options->where('id',$this->{$item->code})->first()->admin_name