⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 henancngpcommu.java

📁 采用JAVA开发
💻 JAVA
字号:
package com.gctech.cngp;

/**
 * <p>Title: 短信 API</p>
 * <p>Description: 短信SP API</p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: GCTECH</p>
 * @author not attributable
 * @version $Id: HenanCngpCommu.java,v 1.1 2004/05/09 05:12:57 wanghb Exp $
 */

public class HenanCngpCommu extends AbstractCngpCommu {
  public HenanCngpCommu() {
  }
  protected byte[] getPlain(String clientId, String auth, String time) {
    int plainLength = clientId.length() + 7 + auth.length() + 10;

    byte[] plain = new byte[plainLength];
    byte[] temp = clientId.getBytes();
    System.arraycopy(temp, 0, plain, 0, temp.length);
    int start = clientId.length() + 7;

    temp = auth.getBytes();
    System.arraycopy(temp, 0, plain, start, temp.length);
    start += auth.length();

    temp = time.getBytes();
    System.arraycopy(temp, 0, plain, start, temp.length);
    return plain;

  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -