Commit d65ceb1e authored by maxiaoliang's avatar maxiaoliang

修改脚本

parent ae894317
...@@ -27,17 +27,12 @@ public class ExchangeItem : MonoBehaviour ...@@ -27,17 +27,12 @@ public class ExchangeItem : MonoBehaviour
public void clickDuihuan() public void clickDuihuan()
{ {
Debug.Log(""+ bean.id); Debug.Log(""+ bean.id);
Dictionary<string, object> parm = new Dictionary<string, object>(); if (bean.status==0)
parm.Clear();
parm.Add("id", bean.id);
HttpTool.Instance._Post("app/v1/game/module/exchange/choose", parm, new Action<GoodsBean>((bean) =>
{ {
// setItemData(bean); ToastPlugin.ToastHelper.ShowToast("余额不足");
FindObjectOfType<DialogControl>().ShowRealAwardsWinDialog().SetUpSubviews(bean.goods.img,bean.goods.name,bean.no); return;
}
}), new Action<string, string>((code, errMsg) => FindObjectOfType<DialogControl>().ShowRealAwardsWinDialog().SetUpSubviews(bean.img, bean.name, bean.id+"");
{
}));
} }
} }
...@@ -176,20 +176,5 @@ public class PlantTreeItem : MonoBehaviour ...@@ -176,20 +176,5 @@ public class PlantTreeItem : MonoBehaviour
} }
//完成填写信息后
public void FinishWriteInfo(int id)
{
Dictionary<string, object> parm = new Dictionary<string, object>();
parm.Clear();
parm.Add("id", id);
HttpTool.Instance._Post("app/v1/game/module/exchange/choose", parm, new Action<GoodsBean>((bean) =>
{
// setItemData(bean);
}), new Action<string, string>((code, errMsg) =>
{
}));
}
} }
...@@ -159,4 +159,21 @@ public class PlantTreeControl : MonoBehaviour ...@@ -159,4 +159,21 @@ public class PlantTreeControl : MonoBehaviour
getRecordLog(); getRecordLog();
// index = 3; // index = 3;
} }
//完成填写信息后
public void FinishWriteInfo(int id)
{
Dictionary<string, object> parm = new Dictionary<string, object>();
parm.Clear();
parm.Add("id", id);
HttpTool.Instance._Post("app/v1/game/module/exchange/choose", parm, new Action<GoodsBean>((bean) =>
{
// setItemData(bean);
}), new Action<string, string>((code, errMsg) =>
{
}));
}
} }
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