Skip to content

Commit

Permalink
文档:更新投资人
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Oct 23, 2024
2 parents 5c926ef + 383d452 commit 2e02ac7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/投资人/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,11 @@
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241022092536_AgAABTM-uTh-1BGYUvlG3ZnHNbFjuTqN.png",
amount: "116.6"
},
{
name: "山山",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241023160441_QQ%E5%9B%BE%E7%89%8720241024000339.jpg",
amount: "28.8"
},
];

// 对投资方数据按投资金额(amount)进行降序排序
Expand Down
Binary file modified docs/投资人/invest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 31 additions & 1 deletion utils/my_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,11 @@ def get_copywriting_and_audio_synthesis(sign_num):
"content": resp_content
}

# 洛曦 直播弹幕助手
if My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "enable") and \
"integral" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "type") and \
"消息产生时" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "trigger_position"):
asyncio.run(send_msg_to_live_comment_assistant(My_handle.config.get("luoxi_project", "Live_Comment_Assistant"), resp_content))

self.audio_synthesis_handle(message)

Expand Down Expand Up @@ -2029,15 +2034,21 @@ def get_copywriting_and_audio_synthesis(sign_num):

# 获取日期部分(前10个字符),并与当前日期字符串比较
if date_string[:10] == datetime.now().date().strftime("%Y-%m-%d"):
resp_content = f"{username}您今天已经签到过了,不能重复打卡哦~"
message = {
"type": "integral",
"tts_type": My_handle.config.get("audio_synthesis_type"),
"data": My_handle.config.get(My_handle.config.get("audio_synthesis_type")),
"config": My_handle.config.get("filter"),
"username": username,
"content": f"{username}您今天已经签到过了,不能重复打卡哦~"
"content": resp_content
}

# 洛曦 直播弹幕助手
if My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "enable") and \
"integral" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "type") and \
"消息产生时" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "trigger_position"):
asyncio.run(send_msg_to_live_comment_assistant(My_handle.config.get("luoxi_project", "Live_Comment_Assistant"), resp_content))

self.audio_synthesis_handle(message)

Expand Down Expand Up @@ -2115,6 +2126,13 @@ def get_copywriting_and_audio_synthesis(total_price):
"content": resp_content
}

# 洛曦 直播弹幕助手
if My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "enable") and \
"integral" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "type") and \
"消息产生时" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "trigger_position"):
asyncio.run(send_msg_to_live_comment_assistant(My_handle.config.get("luoxi_project", "Live_Comment_Assistant"), resp_content))


self.audio_synthesis_handle(message)

# TODO:此处有计算bug!!! 总礼物价值计算不对,后期待优化
Expand Down Expand Up @@ -2211,6 +2229,12 @@ def get_copywriting_and_audio_synthesis(view_num):
"content": resp_content
}

# 洛曦 直播弹幕助手
if My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "enable") and \
"integral" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "type") and \
"消息产生时" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "trigger_position"):
asyncio.run(send_msg_to_live_comment_assistant(My_handle.config.get("luoxi_project", "Live_Comment_Assistant"), resp_content))


self.audio_synthesis_handle(message)

Expand Down Expand Up @@ -2312,6 +2336,12 @@ def get_copywriting_and_audio_synthesis(total_integral):
"content": resp_content
}

# 洛曦 直播弹幕助手
if My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "enable") and \
"integral" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "type") and \
"消息产生时" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "trigger_position"):
asyncio.run(send_msg_to_live_comment_assistant(My_handle.config.get("luoxi_project", "Live_Comment_Assistant"), resp_content))


self.audio_synthesis_handle(message)

Expand Down
4 changes: 3 additions & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4113,7 +4113,8 @@ def local_qa_text_json_file_reload():
"follow_reply",
"gift_reply",
"reread",
"schedule"
"schedule",
"integral"
]
luoxi_project_Live_Comment_Assistant_type_mapping = {
"comment_reply": "弹幕回复",
Expand All @@ -4123,6 +4124,7 @@ def local_qa_text_json_file_reload():
"gift_reply": "礼物回复",
"reread": "复读",
"schedule": "定时任务",
"integral": "积分消息"
}
luoxi_project_Live_Comment_Assistant_type_var = {}

Expand Down

0 comments on commit 2e02ac7

Please sign in to comment.