1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LYFZ.WinicSmsInterface
- {
-
-
-
- public class SendSmsResults
- {
-
-
-
- public enum SendStatus
- {
- 发送成功,
- 发送失败,
- 等待发送,
- 忽略发送,
- 手动重发中
- }
- public SendSmsResults()
- { }
-
-
-
-
-
- public static string GetResults(string code)
- {
- string resultStr = code;
- if (resultStr.IndexOf(".") != -1)
- {
- decimal outMoeny = 0m;
- if (!decimal.TryParse(resultStr, out outMoeny))
- {
- resultStr = "未知错误";
- }
- else {
- return outMoeny.ToString("n2");
- }
- }
- else
- {
- switch (code)
- {
- case "000": resultStr = "成功"; break;
- case "-01": resultStr = "当前账号余额不足!"; break;
- case "-02": resultStr = "当前用户ID错误!"; break;
- case "-03": resultStr = "当前密码错误!"; break;
- case "-04": resultStr = "参数不够或参数内容的类型错误!"; break;
- case "-05": resultStr = "手机号码格式不对!"; break;
- case "-06": resultStr = "短信内容编码不对!"; break;
- case "-07": resultStr = "短信内容含有敏感字符!"; break;
- case "-08": resultStr = "无接收数据!"; break;
- case "-09": resultStr = "系统维护中!"; break;
- case "-10": resultStr = "手机号码数量超长!"; break;
- case "-11": resultStr = "短信内容超长!(70个字符)!"; break;
- case "-12": resultStr = "其它错误!"; break;
- case "-13": resultStr = "文件传输错误!"; break;
- case "-1": resultStr = "服务器网络错误,无法找到接口服务器"; break;
- default: resultStr = "成功"; break;
- }
- }
- return resultStr;
- }
- }
- }
|