fix: 微信小程序接口对接修改。

This commit is contained in:
tianyongbao
2026-01-12 00:33:59 +08:00
parent 2f740b74cd
commit 0387cc2f31
13 changed files with 531 additions and 25 deletions

View File

@@ -51,4 +51,10 @@ public class LoginVo {
*/
private String openid;
/**
* 用户ID
*/
private Long userId;
}

View File

@@ -72,6 +72,7 @@ public class SmsAuthStrategy implements IAuthStrategy {
loginVo.setAccessToken(StpUtil.getTokenValue());
loginVo.setExpireIn(StpUtil.getTokenTimeout());
loginVo.setClientId(client.getClientId());
loginVo.setUserId(loginUser.getUserId());
return loginVo;
}

View File

@@ -219,10 +219,16 @@ aliyun:
app-key: 334224397
# App Secret
app-secret: 70de3018ec39423e9ca1e1b6a6a84ad6
# 设备类型到 ProductKey 的映射配置
device-type:
# 1-水质检测仪 ProductKey请填写实际的 ProductKey
water-quality-monitor: a15hA3oBPmB # TODO: 请替换为实际的水质检测仪 ProductKey
# 2-控制一体机 ProductKey请填写实际的 ProductKey
control-integrated: a15hA3oBPmB # TODO: 请替换为实际的控制一体机 ProductKey
# AMQP 服务端订阅配置(使用数据同步的 AppKey + AppSecret
amqp:
# 是否启用
enabled: true
enabled: false
# 数据同步 AppKey与上面的 app-key 不同!)
data-sync-app-key: 334224409
# 数据同步 AppSecret请在阿里云控制台查看