moengine.java~54~

来自「短信网关发送接受平台。」· JAVA~54~ 代码 · 共 57 行

JAVA~54~
57
字号
package orderapp;/** * Title: * Description: * Copyright:    Copyright (c) 2002 * Company: * @author * @version 1.0 */import utilities.Engine;import data.*;import xml.getLabel;import java.sql.*;public class moEngine extends Engine {       public String str;       //public ConnectionPool data;       public getLabel getLabelString;       public XmlString xml;       public String submit;       public getContent pushSubmit;      // public String sql;	public moEngine() {	       setDaemon(true);	       //data=new ConnectionPool();	      getLabelString=new getLabel();	      xml=new XmlString();	}	public void run(){	       while(true){			if(!Config.mo_queue.isEmpty()){				str=(String)Config.mo_queue.pop();				xml.destination_id=getLabelString.getString("cmpp_deliver/destination_id",str);				xml.msg_fmt=getLabelString.getString("cmpp_deliver/msg_fmt",str);				xml.msg_content=getLabelString.getString("cmpp_deliver/msg_content",str);				xml.src_terminal_id=getLabelString.getString("cmpp_deliver/src_terminal_id",str);				//从mobile_content 表中提取内容生成submit包压入submit池				//pushSubmit=new getContent(xml.msg_content,xml.src_terminal_id);				/*				pushSubmit=new getContent("1","10");				pushSubmit.insertSubmit();				pushSubmit=null;				*/				Config.submit_queue.push("<cmpp_submit><source><name>1</name><guid>1001</guid></source><destination><name>standard</name></destination><src_terminal_id>5988</src_terminal_id><dest_terminal_id>13910139946</dest_terminal_id><msg_fmt>0</msg_fmt><tp_pid>0</tp_pid><tp_udhi>0</tp_udhi><registered_delivery>0</registered_delivery><service_id>DJSD</service_id><fee_user_type>0</fee_user_type><fee_type>02</fee_type><fee_code>000010</fee_code><msg_content>30313233343536373839</msg_content></cmpp_submit>\r\n");			}			try{				//Thread.sleep(Config.sleep_time);				Thread.sleep(4);			}			catch(Exception e){					e.printStackTrace();			}	       }	}}

⌨️ 快捷键说明

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