Ejemplo n.º 1
0
        public string Execute(Hashtable params_ht)
        {
            Hashtable res = params_ht;

            if (res["UID"] == null || res["UID"].ToString().Trim().Length <= 0)
            {
                return(SiteHelper.GetJsonFromHashTable(null, "faild", "参数不完整"));
            }
            else
            {
                uid = res["UID"].ToString().Trim();
                DepositReturnManager depositManager = new DepositReturnManager();
                string state = depositManager.GetDepositState(uid);
                if (string.IsNullOrEmpty(state))
                {
                    return(SiteHelper.GetJsonFromHashTable(null, "faild", "没有数据"));
                }
                else
                {
                    Hashtable result = new Hashtable();
                    result["State"] = state;
                    return(SiteHelper.GetJsonFromHashTable(result, "success", "获取数据成功", "data"));
                }
            }
        }