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

📄 nmsms_channelsub_meg.java

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JAVA
字号:
package com.sxit.wap.sms;import com.tssx.ebiz.smscenter.*;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_Meg {  public static void SMS_ChannelSub(int queId, String uMdn,String channelN, int feeT, int feeC,String feeN) 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 = "客户,您好!您定制业务是:" + channelN + ",定制方式是:" + feeN + ",费用是:" +feeC/100.00 + "元。本条短消息通信费免费!";    long queueID = queId; //序列号  cp    String sourceAddr = ""; //ip    String destinationAddr = uMdn;    short submitMulti = 0; //    int fileNum = 0;    String corpID = "15053"; //    String serviceType = "aaa";    String spNumber = "8888";    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 + -