修改金额文案,web端图片转发问题

This commit is contained in:
guozhen
2024-12-12 09:39:42 +08:00
committed by xuhuixiang
parent a8c7f975c5
commit 675f68d00c
7 changed files with 1703 additions and 802 deletions

View File

@@ -49,12 +49,12 @@ public interface ApiService {
/**
* 正式环境
*/
//String URL = "https://api.letschat2023.com/";
String URL = "https://api.letschat2023.com/";
/**
* 测试环境
*/
String URL = "https://api-test.letschat2023.com/";
//String URL = "https://api-test.letschat2023.com/";
String SUBSTATIONID = "1703655363476242434";

View File

@@ -672,7 +672,7 @@ public abstract class ChatBaseViewModel extends BaseViewModel {
String attachStr = forwardMessage.getAttachStr();
CustomMessageBean customMessageBean = GsonUtils.getObjFromJSON(attachStr, CustomMessageBean.class);
String data = GsonUtils.beanToJSONString(customMessageBean.getData());
if (TextUtils.isEmpty(customMessageBean.getType()) || !isInteger(customMessageBean.getType())) {
if (TextUtils.isEmpty(customMessageBean.getType()) || !isInteger(customMessageBean.getType().trim())) {
return forwardMessage;
}
if (Integer.parseInt(customMessageBean.getType()) == ChatMessageType.CUSTOM_STICKER_ALBUMS) {
@@ -713,11 +713,10 @@ public abstract class ChatBaseViewModel extends BaseViewModel {
private boolean isInteger(String type) {
try {
Integer.parseInt(type);
return type.matches("^-?\\d+$"); //是否全是整数
} catch (Exception e) {
return false;
}
return true;
}