示例#1
0
        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());
        }
示例#2
0
        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();
        }