public void GetListJSON_Active1Own(string userId, ref string _jsonstr) { using (DbOperHandler dbOperHandler = new ComData().Doh()) { object[] objArray = dbOperHandler.ExecuteProc("proc_Active1OwnBet", userId); _jsonstr = "{\"result\" :\"1\",\"returnval\" :\"操作成功\",\"bet\" :\"" + objArray[0] + "\",\"bet2\" :\"" + objArray[1] + "\",\"bet3\" :\"" + objArray[2] + "\"}"; } }
public void GetListJSON_Active1(string userId, ref string _jsonstr) { using (DbOperHandler dbOperHandler = new ComData().Doh()) { object[] array = dbOperHandler.ExecuteProc("proc_Active1Bet", userId); _jsonstr = string.Concat(new object[] { "{\"result\" :\"1\",\"returnval\" :\"操作成功\",\"bet\" :\"", array[0], "\",\"bet2\" :\"", array[1], "\",\"bet3\" :\"", array[2], "\"}" }); } }