Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Metric-Void committed May 29, 2020
1 parent e88d3ec commit e4aa2cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Native.Core/Export/CQEventExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static int Initialize (int authCode)
// 反射获取 AppData 实例
Type appDataType = typeof (AppData);
// 注册一个 CQApi 实例
AppInfo appInfo = new AppInfo ("com.metricv.pcrguild", 1, 9, "公主焊接工会战排刀器", "1.0.2", 1, "MetricVoid", "使用概率分布和背包问题 收集数据来排刀", authCode);
AppInfo appInfo = new AppInfo ("com.metricv.pcrguild", 1, 9, "公主焊接工会战排刀器", "1.0.4", 1, "MetricVoid", "使用概率分布和背包问题 收集数据来排刀", authCode);
appDataType.GetRuntimeProperty ("CQApi").GetSetMethod (true).Invoke (null, new object[] { new CQApi (appInfo) });
AppData.UnityContainer.RegisterInstance<CQApi> ("com.metricv.pcrguild", AppData.CQApi);
// 向容器注册一个 CQLog 实例
Expand Down
2 changes: 1 addition & 1 deletion Native.Core/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ret": 1,
"apiver": 9,
"name": "公主焊接工会战排刀器",
"version": "1.0.3",
"version": "1.0.4",
"version_id": 1,
"author": "MetricVoid",
"description": "使用概率分布和背包问题 收集数据来排刀",
Expand Down
6 changes: 3 additions & 3 deletions com.metricv.pcrguild.Core/MessageDigestor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void DiscussMessage(object sender, CQDiscussMessageEventArgs e) {
if (rx_normalcmd.IsMatch(msg)) {
DBManager.addGroupRelation(e.FromDiscuss, e.FromQQ.Id);
// In a discussion group, everyone has the permission to operate.
DBManager.addGroupRelation(e.FromDiscuss.Id, e.FromQQ.Id);
DBManager.addManager(e.FromDiscuss.Id, e.FromQQ.Id);
Match matches = rx_normalcmd.Match(msg);
String cmd = matches.Groups["cmd"].Value;
e.CQLog.Debug("Expected", $"cmd is {cmd}");
Expand All @@ -47,7 +47,7 @@ public void GroupMessage(object sender, CQGroupMessageEventArgs e) {
DBManager.addGroupRelation(e.FromGroup, e.FromQQ);
QQGroupMemberType temp_mtype = e.FromGroup.GetGroupMemberInfo(e.FromQQ.Id).MemberType;
if (temp_mtype == QQGroupMemberType.Creator || temp_mtype == QQGroupMemberType.Manage) {
DBManager.addGroupRelation(e.FromGroup.Id, e.FromQQ.Id);
DBManager.addManager(e.FromGroup.Id, e.FromQQ.Id);
}
Match matches = rx_normalcmd.Match(msg);
String cmd = matches.Groups["cmd"].Value;
Expand Down Expand Up @@ -537,7 +537,7 @@ private String replyRaw(String head, String cmd, long fromQQ, long fromGroup) {
sb.AppendLine(head);
if (cmd == "版本") {
sb.AppendLine("行会战计算器 by MetricVoid");
sb.AppendLine("ver. 1.0.2 - ALPHA");
sb.AppendLine("ver. 1.0.4 - ALPHA");
sb.AppendLine("使用 行会战#帮助 查看帮助");
} else if (rx_addRecord.IsMatch(cmd)) {
proc_addRecord(ref sb, cmd, fromQQ, fromGroup);
Expand Down

0 comments on commit e4aa2cb

Please sign in to comment.