Skip to content

Commit

Permalink
增加logo,调整文案
Browse files Browse the repository at this point in the history
  • Loading branch information
aborn committed May 8, 2024
1 parent b93914d commit 418b4dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
bitmap strip containing the bitmaps and then there are the numeric ids of the elements used
inside a button definition. An important aspect of this declaration is that the element id
must be the actual index (1-based) of the bitmap inside the bitmap strip. -->
<Bitmap guid="guidImages" href="Resources\SettingCommand.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough"/>
<Bitmap guid="guidImages" href="Resources\logo.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows, bmpPicStrikethrough"/>
</Bitmaps>
</Commands>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void Record()
{
this._currentDayBitSet.clearIfNotToday();
int currentSlot = this._currentDayBitSet.setSlotByCurrentTime();
this.Logger.Info("--> 记录...count:" + this._currentDayBitSet.countOfCodingSlot());
this.Logger.Info("--> 记录开始...count:" + this._currentDayBitSet.countOfCodingSlot());
string today = DateTime.Now.ToString("yyyy-MM-dd");
if (this._ideActivedTime == null)
{
Expand Down Expand Up @@ -153,7 +153,7 @@ private void Record()
}
}
}
this.Logger.Info("--> 记录完成eee...count:" + this._currentDayBitSet.countOfCodingSlot());
this.Logger.Info("--> 往前追回完成...count:" + this._currentDayBitSet.countOfCodingSlot());
}

private bool EnoughTimePassed(DateTime now) => this._lastHeartbeat < now.AddMinutes(-2.0);
Expand Down Expand Up @@ -231,7 +231,7 @@ private void PostCodingTimeToServer()
int count = this._currentDayBitSet.countOfCodingSlot();
if (count <= 0) return;

// 没有变化不,不再频繁上报
// 没有变化不,不再频繁上报,时间间隔要达到5分钟以上
DateTime nowTime = DateTime.Now;
if (_lastPostCountOfCoding == count && _lastPostTime != null && DateSlotUtils.DiffSeconds(_lastPostTime, nowTime) < 300)
{
Expand All @@ -240,15 +240,14 @@ private void PostCodingTimeToServer()
return;
}

this.Logger.Info("上报处理...count:" + count);
this.Logger.Info("数据上报到服务器...count:" + count);
SimpleResult simpleResult = DataSenderHelper.Post(_currentDayBitSet, this._token, this._url);
if (simpleResult.status && simpleResult.code == 200)
{
_lastPostCountOfCoding = count;
_lastPostTime = DateTime.Now;
}

this.Logger.Info("上报结果:" + simpleResult.status + ", code:" + simpleResult.code + ", msg:" +
this.Logger.Info("服务器返回结果:" + simpleResult.status + ", code:" + simpleResult.code + ", msg:" +
simpleResult.msg + ", data:" + simpleResult.data);
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
</VSCTCompile>
</ItemGroup>
<ItemGroup>
<Content Include="Resources\logo.png" />
<Content Include="Resources\SettingCommand.png" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 418b4dc

Please sign in to comment.