1. client.PostAsJsonAsync(url, postData).Result 这里的PostData 不要做任何的转换,自作聪明的转换导致那边结果老是出错;
下面是错误历程
//string l_strPostData = JsonConvert.SerializeObject(input);
//string l_stre = HttpUtility.UrlDecode(HttpUtility.UrlEncode(l_strPostData));
//string temp = l_strPostData.Replace("\", "\\");
//Console.WriteLine(temp);
//temp = temp.Replace(""", "'");
//temp = temp.Substring(1);
//temp = temp.Substring(0, temp.Length - 1);
2.数据库设计默认规则:
a.当表示顺序的适合,0在前面1在后面比如男女;
b.当表示优先级别的适合 0>1>2>3;
c.表示是否可用的适合,0表示不可用,1表示可用;对应bool 中的true 和 false
c.当表示大小的适合时候 3>2>1>0