瀏覽代碼

提示修改

调味吧台
liup 5 月之前
父節點
當前提交
b6f22cb1a6
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. +6
    -2
      app/src/main/java/com/bonait/bnframework/business/MainInit.java
  2. +1
    -1
      app/src/main/java/com/bonait/bnframework/common/helper/MessageLog.java

+ 6
- 2
app/src/main/java/com/bonait/bnframework/business/MainInit.java 查看文件

@@ -240,8 +240,12 @@ public class MainInit {
public void UserMsg(UserLogEnum type, String msg) { public void UserMsg(UserLogEnum type, String msg) {
BPA_LOG log = new BPA_LOG(); BPA_LOG log = new BPA_LOG();
log.userID = ConfigName.getInstance().user.userID; log.userID = ConfigName.getInstance().user.userID;
toastString.append(msg).append("|");
ToastUtils.info(toastString.subSequence(0,toastString.length()-1).toString(), Toast.LENGTH_LONG);
if(msg.contains("登录")){
ToastUtils.info(msg, Toast.LENGTH_SHORT);
}else {
toastString.append(msg).append("|");
ToastUtils.info(toastString.subSequence(0,toastString.length()-1).toString(), Toast.LENGTH_LONG);
}
switch (type.toString()) switch (type.toString())
{ {
case "登录日志":log.type=1; case "登录日志":log.type=1;


+ 1
- 1
app/src/main/java/com/bonait/bnframework/common/helper/MessageLog.java 查看文件

@@ -69,7 +69,7 @@ public class MessageLog {
if(MsgInfo.length()>=8000)MsgInfo=""; if(MsgInfo.length()>=8000)MsgInfo="";
MsgInfo = tempMsg + "\r\n" + MsgInfo; MsgInfo = tempMsg + "\r\n" + MsgInfo;
if (MsgNotify != null) if (MsgNotify != null)
MsgNotify.UserMsg(type,tempMsg);
MsgNotify.UserMsg(type,msg);
if (AddNotify != null) AddNotify.Run(); if (AddNotify != null) AddNotify.Run();
} }




Loading…
取消
儲存