From 8233adff4f3fe273d17fc93d0c7737e56a1fd3fc Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 24 Dec 2025 17:43:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B4=A6=E6=88=B7=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=BB=9F=E4=B8=80=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/intc/invest/service/impl/IMTServiceImpl.java | 11 +++++++++-- .../main/resources/mapper/invest/AccountsMapper.xml | 2 +- .../resources/mapper/invest/BankCardLendMapper.xml | 2 +- .../resources/mapper/invest/FutureStocksMapper.xml | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/IMTServiceImpl.java b/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/IMTServiceImpl.java index 3c5fa68..43b69de 100644 --- a/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/IMTServiceImpl.java +++ b/intc-modules/intc-invest/src/main/java/com/intc/invest/service/impl/IMTServiceImpl.java @@ -118,7 +118,7 @@ public class IMTServiceImpl implements IMTService { final long curTime = System.currentTimeMillis(); data.put("md5", signature(mobile, curTime)); data.put("timestamp", String.valueOf(curTime)); -// data.put("MT-APP-Version", MT_VERSION); + data.put("MT-APP-Version", getMTVersion()); HttpRequest request = HttpUtil.createRequest(Method.POST, "https://app.moutai519.com.cn/xhr/front/user/register/vcode"); @@ -127,6 +127,12 @@ public class IMTServiceImpl implements IMTService { request.header("MT-Device-ID", deviceId); request.header("MT-APP-Version", getMTVersion()); request.header("User-Agent", "iOS;16.3;Apple;?unrecognized?"); + // 添加可能需要的其他请求头 + request.header("Accept", "application/json, text/plain, */*"); + request.header("Accept-Language", "zh-CN,zh-Hans;q=0.9"); + request.header("Referer", "https://h5.moutai519.com.cn/"); + request.header("Origin", "https://h5.moutai519.com.cn"); + request.header("X-Requested-With", "XMLHttpRequest"); request.header("Content-Type", "application/json"); @@ -138,7 +144,8 @@ public class IMTServiceImpl implements IMTService { return Boolean.TRUE; } else { logger.error("「发送验证码-失败」:" + jsonObject.toJSONString()); - throw new ServiceException("发送验证码错误"); + logger.error("错误码:" + jsonObject.getString("code") + ", 错误信息:" + jsonObject.getString("message")); + throw new ServiceException("发送验证码错误: " + jsonObject.getString("message") + " (错误码: " + jsonObject.getString("code") + ")"); // return false; } diff --git a/intc-modules/intc-invest/src/main/resources/mapper/invest/AccountsMapper.xml b/intc-modules/intc-invest/src/main/resources/mapper/invest/AccountsMapper.xml index 56d09b6..a4a9cd4 100644 --- a/intc-modules/intc-invest/src/main/resources/mapper/invest/AccountsMapper.xml +++ b/intc-modules/intc-invest/src/main/resources/mapper/invest/AccountsMapper.xml @@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ${params.dataScope} - order by a.type asc,bcl.debit_type asc,a.update_time desc + order by a.status asc,a.type asc,bcl.debit_type asc,a.update_time desc diff --git a/intc-modules/intc-invest/src/main/resources/mapper/invest/FutureStocksMapper.xml b/intc-modules/intc-invest/src/main/resources/mapper/invest/FutureStocksMapper.xml index 9a240b5..6e7506b 100644 --- a/intc-modules/intc-invest/src/main/resources/mapper/invest/FutureStocksMapper.xml +++ b/intc-modules/intc-invest/src/main/resources/mapper/invest/FutureStocksMapper.xml @@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ${params.dataScope} - order by a.create_time desc + order by a.status asc,a.create_time desc