WebSite/CRMTCWLMobileSMS.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using CRMSYS.PhoneMessagesService;
using System;
using System.Security.Cryptography;
using System.Text;
using System.Web;

public abstract class CRMTCWLMobileSMS
{
    public static WebServiceSoapClient sms = new WebServiceSoapClient();

    public static string Balance(string sn, string pwd)
    {
        string result = sms.balance(sn, pwd);
        if (result.StartsWith("-"))
        {
            return ("发送失败!" + GetWhy(result) + "。返回值是:" + result);
        }
        return ("余额是:" + result);
    }

    public static string ChargeUp(string sn, string pwd, string CardNo, string CardPwd)
    {
        return sms.ChargUp(sn, pwd, CardNo, CardPwd);
    }

    private static string CheckResult(string result)
    {
        if (result.StartsWith("-"))
        {
            return ("发送失败!" + GetWhy(result) + "。返回值是:" + result);
        }
        return ("发送成功。流水号是:" + result);
    }

    public static string getMD5(string source)
    {
        try
        {
            MD5 getmd5 = new MD5CryptoServiceProvider();
            return BitConverter.ToString(getmd5.ComputeHash(Encoding.UTF8.GetBytes(source))).Replace("-", "");
        }
        catch (Exception)
        {
            return "0";
        }
    }

    private static string GetWhy(string code)
    {
        switch (code)
        {
            case "-2":
                return "序列号未注册或加密不对";

            case "-4":
                return "余额不足";

            case "-6":
                return "参数错误,请检测所有参数";

后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。