Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
稍微改了一点捐献页面显示效果
Browse files Browse the repository at this point in the history
  • Loading branch information
the0demiurge committed Mar 4, 2019
1 parent 9e7fea5 commit 14a6127
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ssshare/donation.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,18 +225,18 @@ def parse(data):
else:
number, message = data[:2]
if message:
message = ',并留言:”{}“'.format(message)
message = ',并留言:<b>”{}“</b>'.format(message)
if len(data) >= 3:
name = data[2]
name = '<b>' + data[2]+ '</b>'
else:
name = '某位没有留下名字的'

if len(data) >= 4:
comment = '<br>to 这位朋友:{}'.format(data[3])
comment = '<br>to 这位朋友:<b>{}</b>'.format(data[3])
else:
comment = ''

return_data = '<p>{name}朋友捐献了{number}元{message}:){comment}</p>'.format(
return_data = '<p>{name}朋友捐献了<b>{number}</b>元{message}:)<b>{comment}<b></p>'.format(
name=name,
number=number,
message=message,
Expand Down

0 comments on commit 14a6127

Please sign in to comment.