Commit 95f6d286 authored by wangxuewei's avatar wangxuewei

[提交人]:王雪伟

[提交简述] :多多菜园1.0.3
[实现方案] :回调改为上报
parent a04188c2
......@@ -364,7 +364,12 @@ class GameActivity : UnityPlayerActivity(), IDialogViewCloseCallback {
override fun onSuccess(result: List<LandListEntity>?) {
var json = "{\"landList\":" + Utils.obj2Str(result) + "}"
Log.d("Wxw", "初始化地块列表成功$from$json")
callUnity("Canvas", "loadLandListSuccess", json)
if(from==1){
callUnity("Canvas", "loadLandListSuccess", json)
}
if (from == 2){
callUnity("Form_land", "sycnLandListSuccess", json)
}
}
override fun onFailure(e: Throwable?, code: String?, errorMsg: String?) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment