This commit is contained in:
2025-07-09 17:48:44 +08:00
parent f3b4740244
commit 2a2c4d434b
+2 -2
View File
@@ -33,7 +33,7 @@ class AdService extends BaseService
'default' => function ($params) { 'default' => function ($params) {
return [ return [
'filters' => $params['filters'], 'filters' => $params['filters'],
'fields' => ['id', 'adp_id', 'type', 'img', 'price', 'status', 'sort', 'creater', 'created_at', 'updated_at'], 'fields' => ['id', 'adp_id', 'type', 'img', 'href', 'price', 'status', 'sort', 'creater', 'created_at', 'updated_at'],
'relations' => [ 'relations' => [
'translation' => ['ad_id', 'alt', 'title'], 'translation' => ['ad_id', 'alt', 'title'],
], ],
@@ -50,7 +50,7 @@ class AdService extends BaseService
'show' => function ($params) { 'show' => function ($params) {
return [ return [
'filters' => $params['filters'], 'filters' => $params['filters'],
'fields' => ['id', 'adp_id', 'type', 'img', 'price', 'status', 'sort', 'creater', 'created_at', 'updated_at'], 'fields' => ['id', 'adp_id', 'type', 'img', 'href', 'price', 'status', 'sort', 'creater', 'created_at', 'updated_at'],
'relations' => [ 'relations' => [
'translation' => ['ad_id', 'alt', 'title'], 'translation' => ['ad_id', 'alt', 'title'],
], ],