Compare commits

..

5 Commits

Author SHA1 Message Date
DLmaster
ab94173df7 支持B服,beta模式上线 2024-10-23 15:19:49 +08:00
DLmaster
e50697aae1 添加系统通知功能 2024-10-09 14:16:37 +08:00
DLmaster
c71389fc0b 优化MAA设置逻辑 2024-10-08 19:26:42 +08:00
DLmaster
732129ba34 修正变量命名逻辑 2024-10-07 20:08:26 +08:00
DLmaster
77dfc895ed 修复内部任务失败逻辑错误 2024-10-06 22:09:33 +08:00
8 changed files with 1772 additions and 907 deletions

View File

@@ -70,7 +70,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Built with pyinstaller
run: |
pyinstaller -F --version-file res/info.txt -w --icon=res/AUTO_MAA.ico AUTO_MAA.py
pyinstaller -F --version-file res/info.txt -w --icon=res/AUTO_MAA.ico AUTO_MAA.py --hidden-import plyer.platforms.win.notification
- name: Read version
id: read_version
run: |

File diff suppressed because it is too large Load Diff

View File

@@ -52,6 +52,20 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_switch">
<property name="text">
<string>转为</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_changeset">
<property name="text">
<string>修改配置</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
@@ -82,67 +96,153 @@
</layout>
</item>
<item>
<widget class="QTableWidget" name="tableWidget_userlist">
<column>
<property name="text">
<string>用户名</string>
<widget class="QToolBox" name="toolBox_userset">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="page">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1218</width>
<height>525</height>
</rect>
</property>
</column>
<column>
<property name="text">
<string>手机号码</string>
<attribute name="label">
<string>简洁</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_16">
<item>
<widget class="QTableWidget" name="tableWidget_userlist_simple">
<column>
<property name="text">
<string>用户名</string>
</property>
</column>
<column>
<property name="text">
<string>账号ID</string>
</property>
</column>
<column>
<property name="text">
<string>服务器</string>
</property>
</column>
<column>
<property name="text">
<string>代理天数</string>
</property>
</column>
<column>
<property name="text">
<string>状态</string>
</property>
</column>
<column>
<property name="text">
<string>执行情况</string>
</property>
</column>
<column>
<property name="text">
<string>关卡</string>
</property>
</column>
<column>
<property name="text">
<string>备选关卡-1</string>
</property>
</column>
<column>
<property name="text">
<string>备选关卡-2</string>
</property>
</column>
<column>
<property name="text">
<string>剿灭</string>
</property>
</column>
<column>
<property name="text">
<string>自定义基建</string>
</property>
</column>
<column>
<property name="text">
<string>密码</string>
</property>
</column>
<column>
<property name="text">
<string>备注</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>98</width>
<height>74</height>
</rect>
</property>
</column>
<column>
<property name="text">
<string>代理天数</string>
</property>
</column>
<column>
<property name="text">
<string>状态</string>
</property>
</column>
<column>
<property name="text">
<string>执行情况</string>
</property>
</column>
<column>
<property name="text">
<string>关卡</string>
</property>
</column>
<column>
<property name="text">
<string>备选关卡-1</string>
</property>
</column>
<column>
<property name="text">
<string>备选关卡-2</string>
</property>
</column>
<column>
<property name="text">
<string>剿灭</string>
</property>
</column>
<column>
<property name="text">
<string>自定义基建</string>
</property>
</column>
<column>
<property name="text">
<string>密码</string>
</property>
</column>
<column>
<property name="text">
<string>备注</string>
</property>
</column>
<attribute name="label">
<string>高级</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_17">
<item>
<widget class="QTableWidget" name="tableWidget_userlist_beta">
<column>
<property name="text">
<string>用户名</string>
</property>
</column>
<column>
<property name="text">
<string>代理天数</string>
</property>
</column>
<column>
<property name="text">
<string>状态</string>
</property>
</column>
<column>
<property name="text">
<string>执行情况</string>
</property>
</column>
<column>
<property name="text">
<string>日常</string>
</property>
</column>
<column>
<property name="text">
<string>剿灭</string>
</property>
</column>
<column>
<property name="text">
<string>密码</string>
</property>
</column>
<column>
<property name="text">
<string>备注</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
@@ -543,9 +643,9 @@
<property name="title">
<string>调度台</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<layout class="QHBoxLayout" name="horizontalLayout_3" stretch="2,5">
<item>
<layout class="QVBoxLayout" name="verticalLayout_9" stretch="1,1,3,3,2">
<layout class="QVBoxLayout" name="verticalLayout_9" stretch="0,1,3,3,2">
<item>
<widget class="QFrame" name="frame_main">
<property name="frameShape">
@@ -732,7 +832,7 @@
<property name="frameShadow">
<enum>QFrame::Shadow::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,20,2,1,2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
@@ -743,6 +843,33 @@
<item>
<widget class="QLineEdit" name="lineEdit_MAApath"/>
</item>
<item>
<widget class="QPushButton" name="pushButton_getMAApath">
<property name="text">
<string>浏览</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_setMAA">
<property name="text">
<string>设置MAA</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@@ -1012,11 +1139,19 @@ li.checked::marker { content: &quot;\2612&quot;; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;致用户:&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 这是AUTO_MAA_v3.1.1,项目基本完成可视化。&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 这是AUTO_MAA_v4.0_beta,服务器切换与用户高级配置功能上线。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 正式版去除了命令行窗口但这不意味着BUG不会出现。由于用户与项目贡献者的稀缺我们无法确保正式版足够完善还望谅解。&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 在用户高级配置列表中选中需要配置的用户的“日常”或“剿灭”项单击“修改配置”即可呼出MAA进行配置的自定义。关闭MAA窗口后将自动保存您的修改。为保证程序正常运行我们仍会接管部分MAA的设置项您无须担心。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 您可以通过官方仓库 &lt;a href=&quot;https://github.com/DLmaster361/AUTO_MAA/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#007ad6;&quot;&gt;DLmaster361/AUTO_MAA&lt;/span&gt;&lt;/a&gt; 发布Issues求助。&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 如果是B服用户由于我们无权替您同意用户协议若出现用户协议弹窗您需要自行完成确认否则可能造成MAA卡死代理任务失败。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 老用户请务必备份原有数据,此次更新的代码改动较大,可能有数据遗失的风险。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 我们去除了命令行窗口但这不意味着BUG不会出现。由于用户与项目贡献者的稀缺我们无法确保正式版足够完善还望谅解。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 当遇到严重漏洞,请前往官网检查是否有新的版本或包发布。如有,请更新到最新版本后再次尝试。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 您还可以通过官方仓库 &lt;a href=&quot;https://github.com/DLmaster361/AUTO_MAA/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#007ad6;&quot;&gt;DLmaster361/AUTO_MAA&lt;/span&gt;&lt;/a&gt; 发布Issues求助。&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; 官方QQ群957750551&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;

View File

@@ -1,3 +1,4 @@
plyer
PySide6
pycryptodome
pyinstaller

View File

@@ -4,7 +4,7 @@ VSVersionInfo(
ffi=FixedFileInfo(
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
# Set not needed items to zero 0.
filevers=(3, 1, 3, 0),
filevers=(4, 0, 0, 1),
prodvers=(0, 0, 0, 0),
# Contains a bitmask that specifies the valid bits 'flags'r
mask=0x3f,
@@ -31,13 +31,13 @@ VSVersionInfo(
[StringStruct('Comments', 'https://github.com/DLmaster361/AUTO_MAA/'),
StringStruct('CompanyName', 'AUTO_MAA Team'),
StringStruct('FileDescription', 'AUTO_MAA Component'),
StringStruct('FileVersion', '3.1.3.0'),
StringStruct('FileVersion', '4.0.0.1'),
StringStruct('InternalName', 'AUTO_MAA'),
StringStruct('LegalCopyright', 'Copyright © 2024 DLmaster361'),
StringStruct('OriginalFilename', 'AUTO_MAA.py'),
StringStruct('ProductName', 'AUTO_MAA'),
StringStruct('ProductVersion', 'v3.1.3.0'),
StringStruct('Assembly Version', 'v3.1.3.0')])
StringStruct('ProductVersion', 'v4.0.0.1'),
StringStruct('Assembly Version', 'v4.0.0.1')])
])
]
)

View File

@@ -30,5 +30,10 @@
"Infrast.IsCustomInfrastFileReadOnly": "False" #自定义基建配置文件只读
"Infrast.CustomInfrastFile": "" #自定义基建配置文件地址
#设置
"Start.ClientType": "Bilibili"、 "Official" #服务器
"Timer.Timer1": "False" #时间设置1
"VersionUpdate.ScheduledUpdateCheck": "True" #定时检查更新
"VersionUpdate.AutoDownloadUpdatePackage": "True" #自动下载更新包
"VersionUpdate.AutoInstallUpdatePackage": "True" #自动安装更新包
"Start.RunDirectly": "True" #启动MAA后直接运行
"Start.StartEmulator": "True" #启动MAA后自动开启模拟器

View File

@@ -21,5 +21,5 @@
import os
os.system(
"pyinstaller -F --version-file res/info.txt -w --icon=res/AUTO_MAA.ico AUTO_MAA.py"
"pyinstaller -F --version-file res/info.txt -w --icon=res/AUTO_MAA.ico AUTO_MAA.py --hidden-import plyer.platforms.win.notification"
)

View File

@@ -1,15 +1,16 @@
v3.1.3
v4.0_beta
## 新增功能
- 人工排查功能上线
- 服务器切换功能上线支持B服 #7
- 用户高级配置功能上线支持用户修改几乎所有MAA配置
## 修复BUG
- 添加对内部任务失败的识别
- 修复未完成用户无法正确加载的问题
- 修复无用户进行代理时的逻辑错误
## 程序优化
- 优化log文件读取策略,可以读取无时间戳的日志
- 优化MAA运行判定为后续开发打基础
- log获取部分集成为1个函数
- 消除部分if嵌套
## 更新说明
- 项目初始阶段,不会提供专门的版本更新程序,您需要手动更新程序。
- v2.1.5及以前的用户,由于新版本采用全新的架构,您需要手动输入之前的信息。
- v3.0_Beta版用户,直接用`AUTO_MAA.exe`替代`gui.exe`后,将原文件夹下的`gui文件夹`用新版本对应文件替换,重新设置每个用户的`自定义基建`选项(输入`-`以关闭该功能,输入自定义基建配置文件地址以开启该功能)。
- v3.1~v3.1.2版用户,将原文件夹下除`data文件夹`和`config文件夹`外的内容用新版本对应文件替换即可。
- v3.1~v3.1.3_beta版用户,将原文件夹下除`data文件夹`和`config文件夹`外的内容用新版本对应文件替换即可。
- 老用户请务必备份原有数据在更新前确保所填MAA路径有效且已存在MAA配置文件此次更新的代码改动较大可能有数据遗失的风险。
- 新用户请忽略本说明。