mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Data snapshot save device ID, name and OS https://github.com/siyuan-note/siyuan/issues/8094
This commit is contained in:
parent
9f9afdcfd0
commit
051ddf74ae
7 changed files with 26 additions and 5 deletions
|
|
@ -22,6 +22,7 @@ import (
|
|||
|
||||
type System struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
KernelVersion string `json:"kernelVersion"`
|
||||
OS string `json:"os"`
|
||||
OSPlatform string `json:"osPlatform"`
|
||||
|
|
@ -47,6 +48,7 @@ type System struct {
|
|||
func NewSystem() *System {
|
||||
return &System{
|
||||
ID: util.GetDeviceID(),
|
||||
Name: util.GetDeviceName(),
|
||||
KernelVersion: util.Ver,
|
||||
NetworkProxy: &NetworkProxy{},
|
||||
DownloadInstallPkg: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue