private async void Timer_Tick(object sender, EventArgs e) { if (!string.IsNullOrEmpty(firstQrCode)) { var user = await gameSvc.FindScanQrCodeUserAsync(firstQrCode); if (user != null && user.Data != null) { firstUser = user.Data; //avatorImg.Source = new BitmapImage(new Uri(user.Data.Headimgurl)); avatorImg.Source = UriToImage(user.Data.Headimgurl); //await gameSvc.PostDataByUserAsync(firstUser.ActionId.ToString(), null, null, 80); } var users = await gameSvc.FindScanQrCodeUsersAsync(firstQrCode); if (users != null && users.Data != null) { scanCountBefore.Content = $"{users.Data.Count} 人"; } } }