更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-10
View File
@@ -1,11 +1,3 @@
-- ============================================================
-- 微信小程序多应用配置(yz_platform_wechat_mini_app)
-- 支持配置多个小程序:认证端登录时按客户端传入 appid 精确匹配,
-- 未传 appid 时回退第一条启用记录。
-- AppSecret 以 AES-256-GCM 加密存储(复用 wechatmp 的密钥)。
-- 幂等脚本:重复执行不会产生重复数据。
-- 执行:mysql -h <host> -P <port> -u <user> -p <db> < create_wechat_mini_app.sql
-- ============================================================
CREATE TABLE IF NOT EXISTS yz_platform_wechat_mini_app (
id bigint unsigned NOT NULL AUTO_INCREMENT,
@@ -23,7 +15,6 @@ CREATE TABLE IF NOT EXISTS yz_platform_wechat_mini_app (
UNIQUE KEY uk_mini_app_appid (app_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='微信小程序多应用配置';
-- 迁移旧单行配置(yz_platform_wechat_mini_config)到新表;已存在同 appid 时跳过
INSERT INTO yz_platform_wechat_mini_app (name, app_id, app_secret, enabled, auto_bind, remark)
SELECT COALESCE(NULLIF(c.remark, ''), '默认小程序'), c.app_id, c.app_secret, c.enabled, c.auto_bind, c.remark
FROM yz_platform_wechat_mini_config c
@@ -32,7 +23,6 @@ WHERE c.app_id <> ''
SELECT 1 FROM (SELECT 1 FROM yz_platform_wechat_mini_app x WHERE x.app_id = c.app_id) t
);
-- 结果校验
SELECT id, name, app_id, enabled, auto_bind, remark, qrcode_url
FROM yz_platform_wechat_mini_app
WHERE delete_time IS NULL;