| | |
| | | |
| | | if (installVer == currentVer) { |
| | | LogUtil.i("copyAssets", "已拷贝过,installVer:" + installVer + ";" + "currentVer:" + currentVer); |
| | | Map<String, Object> _msg = new HashMap<>(); |
| | | _msg.put("code", CodeA2U.AssetCopyFinished); |
| | | UnityMsgHandler.sendMessageToUnity(_msg); |
| | | UnityMsgHandler.sendMessageToUnity(CodeA2U.AssetCopyFinished); |
| | | return; |
| | | } |
| | | |
| | |
| | | // 存储此次的拷贝版本 |
| | | SPUtils.get().edit().putLong(SPUtils.LAST_COPY_VERSION, currentVer).apply(); |
| | | Map<String, Object> _msg = new HashMap<>(); |
| | | _msg.put("code", CodeA2U.AssetCopyFinished); |
| | | UnityMsgHandler.sendMessageToUnity(_msg); |
| | | UnityMsgHandler.sendMessageToUnity(CodeA2U.AssetCopyFinished); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |