feature:积分交易功能上线
This commit is contained in:
@@ -117,6 +117,7 @@ class PointTrade:
|
||||
|
||||
sender_user_id, sender_wx_id, sender_wx_nick_name, sender_current_points = sender_result
|
||||
|
||||
sender_current_points = int(sender_current_points)
|
||||
# 如果发信人积分不足
|
||||
if sender_current_points < reward_points:
|
||||
self.wcf.send_text(
|
||||
@@ -135,6 +136,7 @@ class PointTrade:
|
||||
|
||||
recipient_user_id, recipient_wx_id, recipient_wx_nick_name, recipient_current_points = recipient_result
|
||||
|
||||
recipient_current_points =int(recipient_current_points)
|
||||
# 计算发信人和接收者的新积分
|
||||
new_sender_points = sender_current_points - reward_points
|
||||
new_recipient_points = recipient_current_points + reward_points
|
||||
|
||||
Reference in New Issue
Block a user