cardSerial = "0000000000".Substring(1, 10 - cardSerial.Length) + cardSerial;
这个就是10位数字符,假如字符串cardSerial不够10位数,前面自己加'0'到十位数。