Skip to content

Commit

Permalink
Update JDRouterPush.py
Browse files Browse the repository at this point in the history
  • Loading branch information
leifengwl authored Jul 11, 2022
1 parent 98b0bad commit 7e8a5a3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions JDRouterPush.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,19 @@ def resultDisplay():
+ "\n - 最近到期积分:" + str(recentExpireAmount) \
+ "\n - 最近到期时间:" + recentExpireTime \
+ "\n - 最近" + str(GlobalVariable.records_num) + "条记录:"
# pointRecords = pointInfo["pointRecords"]
# if pointInfo.get("pointRecords") is not None:
# for pointRecord in pointRecords:
# recordType = pointRecord["recordType"]
# recordType_str = ""
# if recordType == 1:
# recordType_str = "积分收入:"
# else:
# recordType_str = "积分支出:"
# pointAmount = pointRecord["pointAmount"]
# createTime = pointRecord["createTime"]
# point_infos = point_infos + "\n - " + \
# createTime + " " + recordType_str + str(pointAmount)
pointRecords = pointInfo["pointRecords"]
if pointInfo.get("pointRecords") is not None:
for pointRecord in pointRecords:
recordType = pointRecord["recordType"]
recordType_str = ""
if recordType == 1:
recordType_str = "积分收入:"
else:
recordType_str = "积分支出:"
pointAmount = pointRecord["pointAmount"]
createTime = pointRecord["createTime"]
point_infos = point_infos + "\n - " + \
createTime + " " + recordType_str + str(pointAmount)
notifyContentJson = {"content": content, "date": todayDate, "total_today": today_total_point,
"avail_today": total_avail_point, "account": bindAccount, "devicesCount": totalRecord,
"detail": point_infos}
Expand Down

0 comments on commit 7e8a5a3

Please sign in to comment.