mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	feat: change upload logs systemType to AppFramework
This commit is contained in:
		
							parent
							
								
									848684f287
								
							
						
					
					
						commit
						d2befc05c2
					
				| @ -50,14 +50,14 @@ func (t *thirdServer) UploadLogs(ctx context.Context, req *third.UploadLogsReq) | ||||
| 	platform := constant.PlatformID2Name[int(req.Platform)] | ||||
| 	for _, fileURL := range req.FileURLs { | ||||
| 		log := relationtb.Log{ | ||||
| 			Platform:   platform, | ||||
| 			UserID:     userID, | ||||
| 			CreateTime: time.Now(), | ||||
| 			Url:        fileURL.URL, | ||||
| 			FileName:   fileURL.Filename, | ||||
| 			SystemType: req.AppFramework, | ||||
| 			Version:    req.Version, | ||||
| 			Ex:         req.Ex, | ||||
| 			Platform:     platform, | ||||
| 			UserID:       userID, | ||||
| 			CreateTime:   time.Now(), | ||||
| 			Url:          fileURL.URL, | ||||
| 			FileName:     fileURL.Filename, | ||||
| 			AppFramework: req.AppFramework, | ||||
| 			Version:      req.Version, | ||||
| 			Ex:           req.Ex, | ||||
| 		} | ||||
| 		for i := 0; i < 20; i++ { | ||||
| 			id := genLogID() | ||||
|  | ||||
| @ -19,13 +19,14 @@ import ( | ||||
| ) | ||||
| 
 | ||||
| type Log struct { | ||||
| 	LogID      string    `bson:"log_id"` | ||||
| 	Platform   string    `bson:"platform"` | ||||
| 	UserID     string    `bson:"user_id"` | ||||
| 	CreateTime time.Time `bson:"create_time"` | ||||
| 	Url        string    `bson:"url"` | ||||
| 	FileName   string    `bson:"file_name"` | ||||
| 	SystemType string    `bson:"system_type"` | ||||
| 	Version    string    `bson:"version"` | ||||
| 	Ex         string    `bson:"ex"` | ||||
| 	LogID        string    `bson:"log_id"` | ||||
| 	Platform     string    `bson:"platform"` | ||||
| 	UserID       string    `bson:"user_id"` | ||||
| 	CreateTime   time.Time `bson:"create_time"` | ||||
| 	Url          string    `bson:"url"` | ||||
| 	FileName     string    `bson:"file_name"` | ||||
| 	SystemType   string    `bson:"system_type"` | ||||
| 	AppFramework string    `bson:"app_framework"` | ||||
| 	Version      string    `bson:"version"` | ||||
| 	Ex           string    `bson:"ex"` | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user