|
|
@@ -240,8 +240,12 @@ public class MainInit { |
|
|
|
public void UserMsg(UserLogEnum type, String msg) { |
|
|
|
BPA_LOG log = new BPA_LOG(); |
|
|
|
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()) |
|
|
|
{ |
|
|
|
case "登录日志":log.type=1; |
|
|
|