Commit a55025c7 authored by brent's avatar brent

modify client api

parent 66865b3f
......@@ -643,7 +643,8 @@ func (server *ClientController) IncomeRecord() {
// 将日期转换为当天的 0 点
date := time.Date(item.Time.Year(), item.Time.Month(), item.Time.Day(), 0, 0, 0, 0, time.UTC)
// 将 item 添加到对应日期的分组中
key := date.Format("2006-01-02")
//key := date.Format("2006-01-02")
key := date.Format(format)
if !contains(dates, key) {
dates = append(dates, key)
dateString = dateString + "'" + key + "'" + ","
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment