mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-03 11:19:10 +08:00
* feat: add data parsing functionality in handleProvidersProtocolUrl - Introduced a new ParseData function to decode and parse base64 encoded data from the URL parameters. - Added error handling to log when data is null or invalid, improving robustness of the handleProvidersProtocolUrl function. * fix: update data parsing in handleProvidersProtocolUrl and ProvidersList - Modified ParseData function to return a JSON string instead of an object for consistency. - Simplified data extraction in ProvidersList by directly parsing the addProviderData without base64 decoding, improving readability and performance. * fix: improve data parsing in handleProvidersProtocolUrl - Updated ParseData function to log the parsed result for better debugging. - Enhanced data extraction by replacing URL-safe characters back to their original form before parsing, ensuring accurate data retrieval. * fix: enhance error logging in ParseData function - Updated the ParseData function to log errors when parsing fails, improving debugging capabilities and robustness in handling invalid data. * format code |
||
|---|---|---|
| .. | ||
| configs | ||
| integration/nutstore/sso/lib | ||
| knowledage | ||
| knowledge | ||
| mcpServers | ||
| services | ||
| utils | ||
| bootstrap.ts | ||
| config.ts | ||
| constant.ts | ||
| electron.d.ts | ||
| env.d.ts | ||
| index.ts | ||
| ipc.ts | ||