public string GetStatus() { if (id == "") { return("请输入快递单号! \r\n比如: " + cmd + " R67802001E"); } StringBuilder sb = new StringBuilder(); switch (type) { //for happylink case CommonService.Engine.CTYPE.C_DELIVERY: HappyLink hl = new HappyLink(id); sb.Append(hl.GrabStatus()); break; default: ICKD ickd = new ICKD(id, type); sb.Append(ickd.GetStatus()); break; } return(sb.ToString()); }
public string GetStatus() { if (id == "") { return "请输入快递单号! \r\n比如: " + cmd + " R67802001E"; } StringBuilder sb = new StringBuilder(); switch (type) { //for happylink case CommonService.Engine.CTYPE.C_DELIVERY: HappyLink hl = new HappyLink(id); sb.Append(hl.GrabStatus()); break; default: ICKD ickd = new ICKD(id, type); sb.Append(ickd.GetStatus()); break; } return sb.ToString(); }