123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using System;
- using System.Collections.Generic;
- namespace SCC.Models
- {
-
-
-
- public class OpenCaiBaseJson
- {
-
-
-
- public int rows { get; set; }
-
-
-
- public string code { get; set; }
-
-
-
- public string info { get; set; }
-
-
-
- public List<OpenCodeItem> data { get; set; }
- }
-
-
-
- public class OpenCodeItem
- {
-
-
-
- public string expect { get; set; }
-
-
-
- public string opencode { get; set; }
-
-
-
- public string opentime { get; set; }
-
-
-
- public long opentimestamp { get; set; }
-
-
-
-
- public string GetOpenCodeStr()
- {
- string[] dataary = opencode.Split(',','+');
- List<int> list = new List<int>();
- foreach (var item in dataary)
- {
- list.Add(int.Parse(item));
- }
- return string.Join(",", list);
- }
-
-
-
-
- public string GetTermStr()
- {
- if (expect.Length >9)
- {
- return expect.Substring(2);
- }
- else
- {
- return expect;
- }
- }
- }
- }
|