mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-17 09:16:40 +08:00
更新PC端监听软件
This commit is contained in:
parent
aff1c51227
commit
e3d7efa60f
@ -408,7 +408,7 @@ V免签是一款开源免费适用于个人收款使用的收款程序,原理
|
||||
|
||||
码支付微信PC监听,是老胡使用python写的小工具,可以监听电脑桌面打开的窗口和内容信息,非侵入微信应用内部,版本升级不影响监听。需要将被监听的微信聊天界面单独拖出来成独立窗口。
|
||||
|
||||
[PC监听软件下载wxmonitor.zip](assets/20250217_103606_wxmonitor.zip)
|
||||
[PC监听软件下载wxmonitor_v1.2.zip](assets/20250217_103606_wxmonitor_v1.2.zip)
|
||||
|
||||
##### 配置信息
|
||||
|
||||
|
@ -226,4 +226,22 @@ EOT;
|
||||
$path = runtime_path() . 'install.lock';
|
||||
file_put_contents($path, time());
|
||||
}
|
||||
// 更新数据库结构
|
||||
public function update()
|
||||
{
|
||||
// 连接数据库
|
||||
$db = Db::connect();
|
||||
// 查询 params 列的类型
|
||||
$result = $db->query("SHOW COLUMNS FROM `mpay_pay_account` WHERE Field = 'params'");
|
||||
if ($result && $result[0]['Type'] != 'text') {
|
||||
// 如果不是 text 类型,则修改为 text 类型
|
||||
$sql = "ALTER TABLE `mpay_pay_account` MODIFY COLUMN `params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '自定义查询' AFTER `pattern`;";
|
||||
// 执行 SQL 语句更新数据库结构
|
||||
$is_succ = $db->execute($sql);
|
||||
if (!$is_succ) {
|
||||
return json(backMsg(1, '数据库结构更新失败'));
|
||||
}
|
||||
}
|
||||
return json(backMsg(0, '数据库结构检查并更新完成'));
|
||||
}
|
||||
}
|
||||
|
BIN
assets/20250217_103606_wxmonitor_v1.2.zip
Normal file
BIN
assets/20250217_103606_wxmonitor_v1.2.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user