/// <summary> /// 获取指定Id项的,KeyName列对应数据 /// </summary> /// <param name="ID"></param> /// <returns></returns> private string GetIteam(string ID) { String row = DB.SelectValue(TAB, ID, "ID").ToString(); // 查询ID指定的行信息 long count = long.Parse(ScTool.getJsonValue(row, "count")); if (count > 20 && count % 3 == 0) { //String HbUrl = ScTool.getJsonValue(row, "HbUrl"); //String hbValue = "\"HbUrl\":\"" + HbUrl + "\""; //string defaultHB = GetIteam("100", "HbUrl"); // 默认红包码 //String HbUrlNew = "\"HbUrl\":\"" + defaultHB + "\""; string defaultHB = GetIteam("100", "HbUrl"); // 默认红包码 row = ScTool.ReplaceJsonValue(row, "HbUrl", defaultHB); } return(row); }