From 7c5955128f49553930199fc5fd8f36e7441aea22 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 11 九月 2019 17:30:40 +0800
Subject: [PATCH] update 客户端发logout消息执行切换账号逻辑;支付回调地址从后台获取;创角事件过滤名字中的空字符;屏蔽热云初始化;增加热更事件通知;SDK退出杀死游戏进程;按系统返回键通知SDK退出

---
 Project/app/src/main/java/com/secondworld/univeralsdk/FileUtil.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/Project/app/src/main/java/com/secondworld/univeralsdk/FileUtil.java b/Project/app/src/main/java/com/secondworld/univeralsdk/FileUtil.java
index fbb1a8d..d9ea465 100644
--- a/Project/app/src/main/java/com/secondworld/univeralsdk/FileUtil.java
+++ b/Project/app/src/main/java/com/secondworld/univeralsdk/FileUtil.java
@@ -104,6 +104,38 @@
         }).start();
     }
 
+    public static void copy(Context context, String fileName)
+    {
+        String _originalPath = "android" + File.separator + fileName;
+        String _destPath = context.getExternalFilesDir(
+                "").getAbsolutePath() + File.separator + fileName;
+        String _destDir = _destPath.substring(0, _destPath.lastIndexOf('/') + 1);
+        File _file = new File(_destDir);
+        if(!_file.exists())
+        {
+            LogUtil.i(TAG,"鍗曠嫭鎷疯礉 => 涓嶅瓨鍦ㄦ寚瀹氳矾寰�: " + _destDir + ", 杩欓噷鍒涘缓...");
+            _file.mkdir();
+        }
+        try
+        {
+            InputStream _is = context.getAssets().open(_originalPath);
+            FileOutputStream _fos = new FileOutputStream(new File(_destPath));
+            byte[] _buffer = new byte[1024];
+            int _byteCount;
+            while ((_byteCount = _is.read(_buffer)) != -1)
+            {
+                _fos.write(_buffer, 0, _byteCount);
+            }
+            _fos.flush();
+            _is.close();
+            _fos.close();
+            LogUtil.i("FileUtil", "鍗曠嫭鎷疯礉 => 鏂囦欢: " + _originalPath + " 宸叉嫹璐濊嚦: " + _destPath);
+        } catch (Exception e)
+        {
+            e.printStackTrace();
+        }
+    }
+    
     public static void copy(Context context, String original, String dest)
     {
         try

--
Gitblit v1.8.0