update CUSTOM SEGMENTS price api

This commit is contained in:
edmondlang
2022-08-06 01:46:06 +08:00
parent f7a2861072
commit cd59debee4
8 changed files with 158 additions and 11 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ class SegmentResource extends JsonResource
return [
'id' => $this->id,
'name' => $this->name,
'price' => $constant ? $constant->value : 0
'price' => $constant ? $constant->value[0] : 0
];
}
}