Argument 1 passed to Nuwave\\Lighthouse\\Schema\\TypeRegistry::get() must be of the type string, array given, called in \\vendor\\nuwave\\lighthouse\\src\\Schema\\TypeRegistry.php on line 553
1、Argument 1 passed to Nuwave\\Lighthouse\\Schema\\TypeRegistry::get() must be of the type string, array given, called in E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Schema\\TypeRegistry.php on line 553。如图1
{ "errors": [ { "debugMessage": "Argument 1 passed to Nuwave\\Lighthouse\\Schema\\TypeRegistry::get() must be of the type string, array given, called in E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Schema\\TypeRegistry.php on line 553", "message": "Internal server error", "extensions": { "category": "internal" }, "locations": [ { "line": 42, "column": 3 } ], "path": [ "onlineStore", "theme", "presets", 0, "settings", 0 ], "trace": [ { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Schema\\TypeRegistry.php", "line": 553, "call": "Nuwave\\Lighthouse\\Schema\\TypeRegistry::get(array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Type\\Definition\\InterfaceType.php", "line": 130, "call": "Nuwave\\Lighthouse\\Schema\\TypeRegistry::Nuwave\\Lighthouse\\Schema\\{closure}(array(4), instance of Nuwave\\Lighthouse\\Schema\\Context, instance of GraphQL\\Type\\Definition\\ResolveInfo)" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 940, "call": "GraphQL\\Type\\Definition\\InterfaceType::resolveType(array(4), instance of Nuwave\\Lighthouse\\Schema\\Context, instance of GraphQL\\Type\\Definition\\ResolveInfo)" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 789, "call": "GraphQL\\Executor\\ReferenceExecutor::completeAbstractValue(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(6), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 741, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(6), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 654, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(6), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 887, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValueCatchingError(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(6), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 761, "call": "GraphQL\\Executor\\ReferenceExecutor::completeListValue(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(5), instance of Illuminate\\Support\\Collection(34))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 741, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(5), instance of Illuminate\\Support\\Collection(34))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 654, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(5), instance of Illuminate\\Support\\Collection(34))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 557, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValueCatchingError(GraphQLType: OnlineStoreThemeStyleSetting, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(5), instance of Illuminate\\Support\\Collection(34))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1195, "call": "GraphQL\\Executor\\ReferenceExecutor::resolveField(GraphQLType: OnlineStoreThemePreset, array(4), instance of ArrayObject(1), array(5))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1145, "call": "GraphQL\\Executor\\ReferenceExecutor::executeFields(GraphQLType: OnlineStoreThemePreset, array(4), array(4), instance of ArrayObject(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1106, "call": "GraphQL\\Executor\\ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), array(4), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 793, "call": "GraphQL\\Executor\\ReferenceExecutor::completeObjectValue(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(4), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 654, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(4), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 887, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValueCatchingError(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(4), array(4))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 761, "call": "GraphQL\\Executor\\ReferenceExecutor::completeListValue(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(3), instance of Illuminate\\Support\\Collection(1))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 654, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(3), instance of Illuminate\\Support\\Collection(1))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 557, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValueCatchingError(GraphQLType: OnlineStoreThemePreset, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(3), instance of Illuminate\\Support\\Collection(1))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1195, "call": "GraphQL\\Executor\\ReferenceExecutor::resolveField(GraphQLType: OnlineStoreTheme, array(12), instance of ArrayObject(1), array(3))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1145, "call": "GraphQL\\Executor\\ReferenceExecutor::executeFields(GraphQLType: OnlineStoreTheme, array(12), array(2), instance of ArrayObject(13))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1106, "call": "GraphQL\\Executor\\ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: OnlineStoreTheme, instance of ArrayObject(1), array(2), array(12))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 793, "call": "GraphQL\\Executor\\ReferenceExecutor::completeObjectValue(GraphQLType: OnlineStoreTheme, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(2), array(12))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 654, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStoreTheme, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(2), array(12))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 557, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValueCatchingError(GraphQLType: OnlineStoreTheme, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(2), array(12))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1195, "call": "GraphQL\\Executor\\ReferenceExecutor::resolveField(GraphQLType: OnlineStore, array(0), instance of ArrayObject(1), array(2))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1145, "call": "GraphQL\\Executor\\ReferenceExecutor::executeFields(GraphQLType: OnlineStore, array(0), array(1), instance of ArrayObject(2))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1106, "call": "GraphQL\\Executor\\ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: OnlineStore, instance of ArrayObject(1), array(1), array(0))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 793, "call": "GraphQL\\Executor\\ReferenceExecutor::completeObjectValue(GraphQLType: OnlineStore, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(1), array(0))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 741, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStore, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(1), array(0))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 654, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: OnlineStore, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(1), array(0))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 557, "call": "GraphQL\\Executor\\ReferenceExecutor::completeValueCatchingError(GraphQLType: OnlineStore, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(1), array(0))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 1195, "call": "GraphQL\\Executor\\ReferenceExecutor::resolveField(GraphQLType: Query, null, instance of ArrayObject(1), array(1))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 264, "call": "GraphQL\\Executor\\ReferenceExecutor::executeFields(GraphQLType: Query, null, array(0), instance of ArrayObject(2))" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\ReferenceExecutor.php", "line": 215, "call": "GraphQL\\Executor\\ReferenceExecutor::executeOperation(instance of GraphQL\\Language\\AST\\OperationDefinitionNode, null)" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\Executor\\Executor.php", "line": 156, "call": "GraphQL\\Executor\\ReferenceExecutor::doExecute()" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\GraphQL.php", "line": 162, "call": "GraphQL\\Executor\\Executor::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of Nuwave\\Lighthouse\\Schema\\Context, array(1), 'ThemeById', null)" }, { "file": "E:\\wwwroot\\object\\vendor\\webonyx\\graphql-php\\src\\GraphQL.php", "line": 94, "call": "GraphQL\\GraphQL::promiseToExecute(instance of GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter, instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of Nuwave\\Lighthouse\\Schema\\Context, array(1), 'ThemeById', null, array(29))" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\GraphQL.php", "line": 268, "call": "GraphQL\\GraphQL::executeQuery(instance of GraphQL\\Type\\Schema, instance of GraphQL\\Language\\AST\\DocumentNode, null, instance of Nuwave\\Lighthouse\\Schema\\Context, array(1), 'ThemeById', null, array(29))" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\GraphQL.php", "line": 203, "call": "Nuwave\\Lighthouse\\GraphQL::executeParsedQuery(instance of GraphQL\\Language\\AST\\DocumentNode, instance of Nuwave\\Lighthouse\\Schema\\Context, array(1), null, 'ThemeById')" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\GraphQL.php", "line": 162, "call": "Nuwave\\Lighthouse\\GraphQL::parseAndExecuteQuery('query ThemeById($themeId: ID!) {\n onlineStore {\n theme(id: $themeId) {\n id\n editable\n createdAt\n editedAt\n name\n role\n previewable\n url\n themeStoreThemeId\n metadata {\n author\n description\n documentationUrl\n logoUrl\n name\n supportEmail\n supportUrl\n version\n __typename\n }\n presets {\n ...ThemePreset\n __typename\n }\n themeSettingsCategories {\n ...ThemeSettingsCategory\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n}\n\nfragment ThemePreset on OnlineStoreThemePreset {\n id\n name\n settings {\n ...ThemeSetting\n __typename\n }\n __typename\n}\n\nfragment ThemeSettingsCategory on OnlineStoreThemeSettingsCategory {\n id\n title\n settings {\n ...ThemeSetting\n __typename\n }\n __typename\n}\n\nfragment ThemeSetting on OnlineStoreThemeSetting {\n ... on OnlineStoreThemeSettingHeader {\n ...ThemeSettingHeader\n __typename\n }\n ... on OnlineStoreThemeSettingCollection {\n ...ThemeSettingCollection\n __typename\n }\n ... on OnlineStoreThemeSettingColor {\n ...ThemeSettingColor\n __typename\n }\n ... on OnlineStoreThemeSettingFont {\n ...ThemeSettingFont\n __typename\n }\n ... on OnlineStoreThemeSettingImage {\n ...ThemeSettingImage\n __typename\n }\n ... on OnlineStoreThemeSettingImagePicker {\n ...ThemeSettingImagePicker\n __typename\n }\n ... on OnlineStoreThemeSettingRange {\n ...ThemeSettingRange\n __typename\n }\n ... on OnlineStoreThemeSettingText {\n ...ThemeSettingText\n __typename\n }\n ... on OnlineStoreThemeSettingSelect {\n ...ThemeSettingSelect\n __typename\n }\n ... on OnlineStoreThemeSettingMultipleSelect {\n ...ThemeSettingMultipleSelect\n __typename\n }\n ... on OnlineStoreThemeSettingCheckbox {\n ...ThemeSettingCheckbox\n __typename\n }\n __typename\n}\n\nfragment ThemeSettingCommon on OnlineStoreThemeSetting {\n id\n info\n label\n settingId\n type\n __typename\n}\n\nfragment ThemeSettingHeader on OnlineStoreThemeSettingHeader {\n ...ThemeSettingCommon\n content\n __typename\n}\n\nfragment ThemeSettingCollection on OnlineStoreThemeSettingCollection {\n ...ThemeSettingCommon\n collectionValue: value\n __typename\n}\n\nfragment ThemeSettingColor on OnlineStoreThemeSettingColor {\n ...ThemeSettingCommon\n colorDefault: default\n colorValue: value\n __typename\n}\n\nfragment ThemeSettingFont on OnlineStoreThemeSettingFont {\n ...ThemeSettingCommon\n options {\n label\n value\n __typename\n }\n fontValue: value\n __typename\n}\n\nfragment ThemeSettingImage on OnlineStoreThemeSettingImage {\n ...ThemeSettingCommon\n imageValue: value\n __typename\n}\n\nfragment ThemeSettingImagePicker on OnlineStoreThemeSettingImagePicker {\n ...ThemeSettingCommon\n imagePickerValue: value\n __typename\n}\n\nfragment ThemeSettingRange on OnlineStoreThemeSettingRange {\n ...ThemeSettingCommon\n rangeDefault: default\n min\n max\n step\n unit\n rangeValue: value\n __typename\n}\n\nfragment ThemeSettingText on OnlineStoreThemeSettingText {\n ...ThemeSettingCommon\n textDefault: default\n textValue: value\n placeholder: placeholder\n __typename\n}\n\nfragment ThemeSettingSelect on OnlineStoreThemeSettingSelect {\n ...ThemeSettingCommon\n selectDefault: default\n selectValue: value\n options {\n group\n label\n value\n __typename\n }\n __typename\n}\n\nfragment ThemeSettingMultipleSelect on OnlineStoreThemeSettingMultipleSelect {\n ...ThemeSettingCommon\n multipleSelectDefault: default\n multipleSelectValue: value\n options: options {\n group\n label\n value\n __typename\n }\n __typename\n}\n\nfragment ThemeSettingCheckbox on OnlineStoreThemeSettingCheckbox {\n ...ThemeSettingCommon\n checkboxDefault: default\n checkboxValue: value\n __typename\n}\n\n\n\n\n', instance of Nuwave\\Lighthouse\\Schema\\Context, array(1), null, 'ThemeById')" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\GraphQL.php", "line": 121, "call": "Nuwave\\Lighthouse\\GraphQL::executeOperation(instance of GraphQL\\Server\\OperationParams, instance of Nuwave\\Lighthouse\\Schema\\Context)" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Support\\Utils.php", "line": 99, "call": "Nuwave\\Lighthouse\\GraphQL::Nuwave\\Lighthouse\\{closure}(instance of GraphQL\\Server\\OperationParams)" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\GraphQL.php", "line": 120, "call": "Nuwave\\Lighthouse\\Support\\Utils::applyEach(instance of Closure, instance of GraphQL\\Server\\OperationParams)" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Support\\Http\\Controllers\\GraphQLController.php", "line": 32, "call": "Nuwave\\Lighthouse\\GraphQL::executeOperationOrOperations(instance of GraphQL\\Server\\OperationParams, instance of Nuwave\\Lighthouse\\Schema\\Context)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php", "line": 48, "call": "Nuwave\\Lighthouse\\Support\\Http\\Controllers\\GraphQLController::__invoke(instance of Illuminate\\Http\\Request, instance of Nuwave\\Lighthouse\\GraphQL, instance of Illuminate\\Events\\Dispatcher, instance of Laragraph\\Utils\\RequestParser, instance of Nuwave\\Lighthouse\\Execution\\SingleResponse, instance of Nuwave\\Lighthouse\\Execution\\ContextFactory)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php", "line": 219, "call": "Illuminate\\Routing\\ControllerDispatcher::dispatch(instance of Illuminate\\Routing\\Route, instance of Nuwave\\Lighthouse\\Support\\Http\\Controllers\\GraphQLController, '__invoke')" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php", "line": 176, "call": "Illuminate\\Routing\\Route::runController()" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 681, "call": "Illuminate\\Routing\\Route::run()" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 130, "call": "Illuminate\\Routing\\Router::Illuminate\\Routing\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Support\\Http\\Middleware\\AttemptAuthentication.php", "line": 34, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Nuwave\\Lighthouse\\Support\\Http\\Middleware\\AttemptAuthentication::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\nuwave\\lighthouse\\src\\Support\\Http\\Middleware\\AcceptJson.php", "line": 27, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Nuwave\\Lighthouse\\Support\\Http\\Middleware\\AcceptJson::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 105, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 683, "call": "Illuminate\\Pipeline\\Pipeline::then(instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 658, "call": "Illuminate\\Routing\\Router::runRouteWithinStack(instance of Illuminate\\Routing\\Route, instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 624, "call": "Illuminate\\Routing\\Router::runRoute(instance of Illuminate\\Http\\Request, instance of Illuminate\\Routing\\Route)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php", "line": 613, "call": "Illuminate\\Routing\\Router::dispatchToRoute(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php", "line": 170, "call": "Illuminate\\Routing\\Router::dispatch(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 130, "call": "Illuminate\\Foundation\\Http\\Kernel::Illuminate\\Foundation\\Http\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\app\\Http\\Middleware\\ChangeAppUrlMiddleware.php", "line": 23, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "App\\Http\\Middleware\\ChangeAppUrlMiddleware::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php", "line": 21, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php", "line": 21, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize.php", "line": 27, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode.php", "line": 63, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\fideloper\\proxy\\src\\TrustProxies.php", "line": 57, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Fideloper\\Proxy\\TrustProxies::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\dingo\\api\\src\\Http\\Middleware\\Request.php", "line": 111, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 171, "call": "Dingo\\Api\\Http\\Middleware\\Request::handle(instance of Illuminate\\Http\\Request, instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php", "line": 105, "call": "Illuminate\\Pipeline\\Pipeline::Illuminate\\Pipeline\\{closure}(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php", "line": 145, "call": "Illuminate\\Pipeline\\Pipeline::then(instance of Closure)" }, { "file": "E:\\wwwroot\\object\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php", "line": 110, "call": "Illuminate\\Foundation\\Http\\Kernel::sendRequestThroughRouter(instance of Illuminate\\Http\\Request)" }, { "file": "E:\\wwwroot\\object\\public\\index.php", "line": 57, "call": "Illuminate\\Foundation\\Http\\Kernel::handle(instance of Illuminate\\Http\\Request)" } ] } ], "data": { "onlineStore": { "theme": { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011", "editable": true, "createdAt": "2022-07-04 02:53:29", "editedAt": "2022-07-05 01:26:35", "name": "brooklyn", "role": "MAIN", "previewable": true, "url": "https://object.local", "themeStoreThemeId": 21, "metadata": { "author": "LF", "description": null, "documentationUrl": null, "logoUrl": null, "name": "布鲁克林", "supportEmail": null, "supportUrl": "", "version": "MIX_VERSION", "__typename": "ThemeMetadata" }, "presets": [ null ], "themeSettingsCategories": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E9%A3%8E%E6%A0%BC", "title": "风格", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/radius__image", "info": null, "label": "图片圆角度数", "settingId": "radius__image", "type": "RANGE", "__typename": "OnlineStoreThemeSettingRange", "rangeDefault": 0, "min": 0, "max": 24, "step": 1, "unit": null, "rangeValue": 0 }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/radius__button", "info": null, "label": "按钮圆角度数", "settingId": "radius__button", "type": "RANGE", "__typename": "OnlineStoreThemeSettingRange", "rangeDefault": 0, "min": 0, "max": 24, "step": 1, "unit": null, "rangeValue": 0 } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E9%A2%9C%E8%89%B2", "title": "颜色", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__price", "info": null, "label": "现价", "settingId": "color__price", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#ff0000", "colorValue": "#ff0000" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__regular_price", "info": null, "label": "原价", "settingId": "color__regular_price", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#000000", "colorValue": "#000000" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__discount", "info": null, "label": "折扣", "settingId": "color__discount", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#990000", "colorValue": "#990000" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__text", "info": "用于正常标题、正文文本等", "label": "文字色", "settingId": "color__text", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#1e3a8a", "colorValue": "#212529" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__disabled", "info": "用于不可用按钮、原价等", "label": "禁用色", "settingId": "color__disabled", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#999999", "colorValue": "#999999" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__primary", "info": "用于主按钮等", "label": "强调色 1", "settingId": "color__primary", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#7c3aed", "colorValue": "#c90d0d" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__primary_contrast", "info": "用于主按钮等文字色", "label": "强调色对比色", "settingId": "color__primary_contrast", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#ffffff", "colorValue": "#ffffff" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__secondary", "info": null, "label": "强调色 2", "settingId": "color__secondary", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#c026d3", "colorValue": "#c90d0d" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__background_default", "info": "用于页面背景", "label": "背景色 1", "settingId": "color__background_default", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#fae8ff", "colorValue": "#ffffff" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__background_paper", "info": "用于普通卡片背景", "label": "背景色 2", "settingId": "color__background_paper", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#f6f6f6", "colorValue": "#f6f6f6" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/color__background_product", "info": "用于产品卡片背景", "label": "背景色 3", "settingId": "color__background_product", "type": "COLOR", "__typename": "OnlineStoreThemeSettingColor", "colorDefault": "#ffe4e6", "colorValue": "#f9f1e6" } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E5%AD%97%E4%BD%93", "title": "字体", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/0", "info": "轮播图标题、模块标题、商品的标题等", "label": "", "settingId": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/0", "type": "HEADER", "__typename": "OnlineStoreThemeSettingHeader", "content": "标题" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/font__heading_family", "info": null, "label": "字体", "settingId": "font__heading_family", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "Mulish-Regular", "selectValue": "OpenSans-Regular", "options": [] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/2", "info": "轮播图副标题、顶部菜单栏、按钮文字、价格显示等", "label": "", "settingId": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/2", "type": "HEADER", "__typename": "OnlineStoreThemeSettingHeader", "content": "副标题" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/font__subheading_family", "info": null, "label": "字体", "settingId": "font__subheading_family", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "Mulish-Regular", "selectValue": "OpenSans-Regular", "options": [] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/4", "info": "列表内的商品名称、详情页文本等", "label": "", "settingId": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/4", "type": "HEADER", "__typename": "OnlineStoreThemeSettingHeader", "content": "正文" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/font__body_family", "info": null, "label": "字体", "settingId": "font__body_family", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "Mulish-Regular", "selectValue": "OpenSans-Regular", "options": [] } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E5%AD%97%E5%8F%B7", "title": "字号", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/font__heading_size", "info": null, "label": "标题字号", "settingId": "font__heading_size", "type": "TEXT", "__typename": "OnlineStoreThemeSettingText", "textDefault": "26px", "textValue": "26px", "placeholder": null }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/font__body_size", "info": null, "label": "正文字号", "settingId": "font__body_size", "type": "TEXT", "__typename": "OnlineStoreThemeSettingText", "textDefault": "15px", "textValue": "15px", "placeholder": null } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E7%BD%91%E7%AB%99%E5%9B%BE%E6%A0%87", "title": "网站图标", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/favicon", "info": "Favicon为网站的缩略标识,会展示在浏览器标签、收藏夹,建议尺寸为32x32 px,大小限制:≤8M,最大像素20MP。", "label": "网站图标", "settingId": "favicon", "type": "IMAGE_PICKER", "__typename": "OnlineStoreThemeSettingImagePicker", "imagePickerValue": null } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E5%88%86%E4%BA%AB", "title": "分享", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/0", "info": null, "label": "", "settingId": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/0", "type": "HEADER", "__typename": "OnlineStoreThemeSettingHeader", "content": "社交分享选项" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/share__facebook", "info": null, "label": "Facebook", "settingId": "share__facebook", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": false, "checkboxValue": false }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/share__twitter", "info": null, "label": "Twitter", "settingId": "share__twitter", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": false, "checkboxValue": false }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/share__pinterest", "info": null, "label": "Pinterest", "settingId": "share__pinterest", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": false, "checkboxValue": false }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/4", "info": null, "label": "", "settingId": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/4", "type": "HEADER", "__typename": "OnlineStoreThemeSettingHeader", "content": "展示风格选项" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/share__default_image", "info": "当你在社交媒体上分享店铺或商品链接时,我们将使用该背景图。", "label": "图片", "settingId": "share__default_image", "type": "IMAGE_PICKER", "__typename": "OnlineStoreThemeSettingImagePicker", "imagePickerValue": null }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/share__default_image_first", "info": null, "label": "分享商品时背景图片优先于商品图片显示", "settingId": "share__default_image_first", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": false, "checkboxValue": false }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/share__style", "info": null, "label": "显示样式", "settingId": "share__style", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "default", "selectValue": "default", "options": [ { "group": null, "label": "默认", "value": "default", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "按钮展开", "value": "expand", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "固定右侧", "value": "right", "__typename": "ThemeSettingSelectOption" } ] } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E8%B4%AD%E7%89%A9%E8%BD%A6", "title": "购物车", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/cart__open_type", "info": null, "label": "打开方式", "settingId": "cart__open_type", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "page", "selectValue": "page", "options": [ { "group": null, "label": "页面", "value": "page", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "抽屉", "value": "drawer", "__typename": "ThemeSettingSelectOption" } ] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/cart__color_mode", "info": null, "label": "颜色模式", "settingId": "cart__color_mode", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "bright", "selectValue": "bright", "options": [ { "group": null, "label": "明亮风格", "value": "bright", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "深色风格", "value": "dark", "__typename": "ThemeSettingSelectOption" } ] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/cart__show_note", "info": null, "label": "开启购物车备注", "settingId": "cart__show_note", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": false, "checkboxValue": false } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E8%B4%A7%E5%B8%81%E6%8D%A2%E7%AE%97", "title": "货币换算", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/currency__exchange", "info": null, "label": "货币换算", "settingId": "currency__exchange", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "global", "selectValue": "global", "options": [ { "group": null, "label": "关闭", "value": "off", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "页头", "value": "menu", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "全局", "value": "global", "__typename": "ThemeSettingSelectOption" } ] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/currency__default", "info": null, "label": "默认货币", "settingId": "currency__default", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "DEFAULT", "selectValue": "DEFAULT", "options": [ { "group": null, "label": "根据IP自动检测", "value": "DEFAULT", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "美元", "value": "USD", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "英镑", "value": "GBP", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "欧元", "value": "EUR", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "日元", "value": "JPY", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "人民币", "value": "CNY", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "关闭", "value": "off", "__typename": "ThemeSettingSelectOption" } ] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/currency__cart__show_tip", "info": null, "label": "购物车显示提示", "settingId": "currency__cart__show_tip", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": true, "checkboxValue": false } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E7%BD%91%E7%AB%99%E8%AF%AD%E8%A8%80", "title": "网站语言", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/i18n__default_locale", "info": null, "label": "默认的语言", "settingId": "i18n__default_locale", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "en-US", "selectValue": "en-US", "options": [ { "group": null, "label": "English", "value": "en-US", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "简体中文", "value": "zh-CN", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Español", "value": "sp-ES", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Français", "value": "fr-FR", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Deutsche", "value": "de-DE", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Português", "value": "pt-PT", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Italiano", "value": "it-IT", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "日本語", "value": "ja-JP", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "русский", "value": "ru-RU", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Nederlands", "value": "nl-NL", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "한국어", "value": "ko-KR", "__typename": "ThemeSettingSelectOption" } ] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/i18n__enable_switch", "info": null, "label": "启用语言切换", "settingId": "i18n__enable_switch", "type": "CHECKBOX", "__typename": "OnlineStoreThemeSettingCheckbox", "checkboxDefault": false, "checkboxValue": false }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/i18n__available_locales", "info": null, "label": "选择可用语言", "settingId": "i18n__available_locales", "type": "MULTIPLE_SELECT", "__typename": "OnlineStoreThemeSettingMultipleSelect", "multipleSelectDefault": [], "multipleSelectValue": [ "en-US", "zh-CN", "sp-ES", "fr-FR", "de-DE", "pt-PT", "it-IT", "ja-JP", "ru-RU", "nl-NL", "ko-KR" ], "options": [ { "group": null, "label": "English", "value": "en-US", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "简体中文", "value": "zh-CN", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Español", "value": "sp-ES", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Français", "value": "fr-FR", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Deutsche", "value": "de-DE", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Português", "value": "pt-PT", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Italiano", "value": "it-IT", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "日本語", "value": "ja-JP", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "русский", "value": "ru-RU", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "Nederlands", "value": "nl-NL", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "한국어", "value": "ko-KR", "__typename": "ThemeSettingSelectOption" } ] } ], "__typename": "OnlineStoreThemeSettingsCategory" }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings-categories/%E4%BA%A7%E5%93%81%E5%8D%A1%E7%89%87", "title": "产品卡片", "settings": [ { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/product_card__buy_btn_type", "info": null, "label": "购物车卡片加购按钮类型", "settingId": "product_card__buy_btn_type", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "popup", "selectValue": "popup", "options": [ { "group": null, "label": "打开快速购买弹窗", "value": "popup", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "加购跳转购物车", "value": "add", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "跳转详情页", "value": "link", "__typename": "ThemeSettingSelectOption" } ] }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/product_card__buy_btn_text", "info": null, "label": "购物车购买按钮文案", "settingId": "product_card__buy_btn_text", "type": "TEXT", "__typename": "OnlineStoreThemeSettingText", "textDefault": "SELECT OPTION", "textValue": "SELECT OPTION", "placeholder": null }, { "id": "96b1c8b9-5b18-4760-9e26-50ab009ac011/settings/product_card__buy_btn_style", "info": null, "label": "购买按钮显示", "settingId": "product_card__buy_btn_style", "type": "SELECT", "__typename": "OnlineStoreThemeSettingSelect", "selectDefault": "none", "selectValue": "none", "options": [ { "group": null, "label": "不显示", "value": "none", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "PC端鼠标滑入显示,移动端一直显示", "value": "hover", "__typename": "ThemeSettingSelectOption" }, { "group": null, "label": "一直显示", "value": "always", "__typename": "ThemeSettingSelectOption" } ] } ], "__typename": "OnlineStoreThemeSettingsCategory" } ], "__typename": "OnlineStoreTheme" }, "__typename": "OnlineStore" }, "__typename": "Query" } }
2、编辑代码,在返回参数中添加 __typename
return [ 'id' => $id->with($settingId), 'settingId' => $settingId, 'type' => $type, 'info' => $themeSettingSchema->getSetting($settingId)->getInfo(), 'label' => $themeSettingSchema->getSetting($settingId)->getLabel(), 'default' => $themeSettingSchema->getSetting($settingId)->getDefault(), 'value' => $value, '__typename' => 'OnlineStoreThemeSetting' . $this->camelize($type), ];
近期评论