|
@@ -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; |
|
|