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

📄 nmsms_channelsub.java

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JAVA
字号:
package com.sxit.wap.sms;

import com.tssx.ebiz.smscenter.*;
import com.sxit.wap.cp.*;
import java.sql.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class NMSMS_ChannelSub {

  public static void SMS_ChannelSub(String uMdn,String cont) throws Exception {

    Connection conn = null;
    try {
      Class.forName("oracle.jdbc.driver.OracleDriver");
      System.out.println(
          "get connectin by jdbc:oracle:thin:@10.29.1.2:1521:ora8");
      conn = DriverManager.getConnection(
          "jdbc:oracle:thin:@10.29.1.2:1521:ora8", "tssxwap", "tssxwap");
    }
    catch (Exception exe) {
      exe.printStackTrace();
      System.out.println("can not getconnection");
    }

    String mobileNoPassword = "aaaa";
    String content = cont;

    int queueID = CpBean.getSequenceNextValue();
    String sourceAddr = ""; //ip
    String destinationAddr = uMdn;
    short submitMulti = 0; //
    int fileNum = 0;
    String corpID = "15053"; //
    String serviceType = "webdx";
    String spNumber = "8888";
    int feeType = 1;
    String feeValue = "0";
    /*int feeType = feeT; //0 1免费 2收费 3包月费 4sp实现收费
    String feeValue = String.valueOf(feeC); //费率*/
    String givenValue = "0";
    int morelatetoMTFlag = 2; //0mo的第一条 1mo引起的不是第一条 2普通mt 3系统mt
    int reportFlag = 1; //0出错返回 1一定返回 2不返回 3报月

    SMSQueue smsqueue = new SMSQueue();
    smsqueue.insert(conn, queueID, "", "86" + destinationAddr, content,
                    submitMulti, fileNum,
                    spNumber, corpID, serviceType, 1, "0",
                    givenValue, morelatetoMTFlag, reportFlag);

    System.out.println("成功了成功了成功了成功了成功了");
  }

  public static void main(String[] args) throws Exception {

  }

}

⌨️ 快捷键说明

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