mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
set apptype = legacy
This commit is contained in:
parent
b2493880c7
commit
4d6f038b3f
@ -167,7 +167,14 @@ func SendTelemetry(ctx context.Context, force bool) error {
|
||||
log.Printf("[pcloud] sending telemetry data\n")
|
||||
dayStr := telemetry.GetCurDayStr()
|
||||
defaultShellType := shellapi.DetectLocalShellType()
|
||||
input := TelemetryInputType{UserId: clientData.UserId, ClientId: clientData.ClientId, CurDay: dayStr, DefaultShell: defaultShellType, Activity: activity}
|
||||
input := TelemetryInputType{
|
||||
UserId: clientData.UserId,
|
||||
ClientId: clientData.ClientId,
|
||||
AppType: "legacy",
|
||||
CurDay: dayStr,
|
||||
DefaultShell: defaultShellType,
|
||||
Activity: activity,
|
||||
}
|
||||
req, err := makeAnonPostReq(ctx, TelemetryUrl, input)
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -24,6 +24,7 @@ type TelemetryInputType struct {
|
||||
ClientId string `json:"clientid"`
|
||||
CurDay string `json:"curday"`
|
||||
DefaultShell string `json:"defaultshell"`
|
||||
AppType string `json:"apptype"`
|
||||
Activity []*telemetry.ActivityType `json:"activity"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user