bug修改

This commit is contained in:
周鹏 committed 2026-08-19 22:52:35 +08:00
1 parent 17d293ec0a
commit 3e92f81667
5 files changed
+21 -5

No files matched your search

@@ -36,6 +36,9 @@ public class AppBrokerageWithdrawRespVO {
@Schema(description = "转账失败原因", example = "用户未确认收款")
private String transferErrorMsg;
@Schema(description = "备注", example = "账号信息有误")
private String remark;
// ========== 微信转账专属 ==========
@Schema(description = "转账单编号", example = "1024")
@@ -55,7 +55,7 @@ public class PosterPicGen {
private int pageHeight = 700;
private String title = "荷塘月色";
private String title = "荷塘助手";
private String description = "荷塘湖畔 相伴月色";
@@ -17,7 +17,7 @@ public final class ChatConstant {
* 客服用户id
*/
public static final Long COM_SERVICE_USER_ID = -200L;
public static final String COM_SERVICE_USER_NAME = "荷塘月色客服";
public static final String COM_SERVICE_USER_NAME = "荷塘助手客服";
public static final String COM_SERVICE_USER_AVATAR = "https://api.htysapp.com/admin-api/infra/file/4/get/affa4cac924cb13fe5706100828685015d512bca7dfa0e26ef82422b31877abc.png";
public static final List<Long> IGNORE_USER_IDS = Arrays.asList(0L, COM_MESSAGE_USER_ID, COM_SERVICE_USER_ID);
@@ -29,6 +29,12 @@ import java.util.stream.Collectors;
public class MemberPushServiceImpl implements MemberPushService {
private static final int MAX_ALERT_LENGTH = 100;
/** Android 8+ 通知渠道,需与 App 端 JPush setChannelAndSound 的 channel_id 一致 */
private static final String ANDROID_CHANNEL_ID = "htys_message";
/** iOS 系统默认提示音 */
private static final String IOS_SOUND = "default";
/** 极光 Android alert_type:-1 表示默认(声音 + 震动等) */
private static final int ANDROID_ALERT_TYPE_DEFAULT = -1;
@Resource
private MemberPushDeviceService pushDeviceService;
@@ -62,8 +68,15 @@ public class MemberPushServiceImpl implements MemberPushService {
.setAudience(Audience.registrationId(registrationIds))
.setNotification(Notification.newBuilder()
.setAlert(alert)
.addPlatformNotification(AndroidNotification.newBuilder().setTitle(title).build())
.addPlatformNotification(IosNotification.newBuilder().incrBadge(1).build())
.addPlatformNotification(AndroidNotification.newBuilder()
.setTitle(title)
.setChannelId(ANDROID_CHANNEL_ID)
.setAlertType(ANDROID_ALERT_TYPE_DEFAULT)
.build())
.addPlatformNotification(IosNotification.newBuilder()
.incrBadge(1)
.setSound(IOS_SOUND)
.build())
.build())
.setMessage(Message.newBuilder().setTitle(title).setMsgContent(alert)
.addExtra("type", "private_message")
@@ -110,7 +110,7 @@ aj:
cache-number: 1000 # local 缓存的阈值,达到这个值,清除缓存
timing-clear: 180 # local定时清除过期缓存(单位秒),设置为0代表不执行
type: blockPuzzle # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
water-mark: 荷塘月色 # 右下角水印文字(我的水印),可使用 https://tool.chinaz.com/tools/unicode.aspx 中文转 Unicode,Linux 可能需要转 unicode
water-mark: 荷塘助手 # 右下角水印文字(我的水印),可使用 https://tool.chinaz.com/tools/unicode.aspx 中文转 Unicode,Linux 可能需要转 unicode
interference-options: 0 # 滑动干扰项(0/1/2)
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
req-get-lock-limit: 5 # 验证失败 5 次,get接口锁定