浏览代码

发布自建推送平台内容

huangbo 9 年之前
父节点
当前提交
6b4c5954d2

+ 2 - 0
display-client/.gitignore

2
/bin
2
/bin
3
/gen
3
/gen
4
/proguard
4
/proguard
5
/display-client.apk
6
/lint.xml

+ 2 - 2
display-client/assets/mobile-config.xml

17
	<!-- 非必须。进入应用时的欢迎页面 --><!-- file:///android_asset为固定写法,表示工程的asset目录 -->
17
	<!-- 非必须。进入应用时的欢迎页面 --><!-- file:///android_asset为固定写法,表示工程的asset目录 -->
18
	<config name="loading_page" value="file:///android_asset/local/welcome.html"/>
18
	<config name="loading_page" value="file:///android_asset/local/welcome.html"/>
19
	<!-- 非必须。更新应用的url -->
19
	<!-- 非必须。更新应用的url -->
20
	<config name="update_url" value="http://114.215.100.48:8080/setup/display-client.apk"/>
20
	<config name="update_url" value="http://123.57.35.51/download/android/display-client.apk"/>
21
	<!-- 推送平台服务地址 -->
21
	<!-- 推送平台服务地址 -->
22
	<config name="push_address" value="123.57.35.51"/>
22
	<config name="push_address" value="123.57.35.51"/>
23
	<!-- 推送平台服务端口 -->
23
	<!-- 推送平台服务端口 -->
24
	<config name="push_port" value="23456"/>
24
	<config name="push_port" value="7070"/>
25
	
25
	
26
	<!-- 非必须,默认2。缓存模式 --><!-- APP_CACHE_MODE -1:LOAD_DEFAULT,0:LOAD_NORMAL,1:LOAD_CACHE_ELSE_NETWORK,2:LOAD_NO_CACHE,3:LOAD_CACHE_ONLY -->
26
	<!-- 非必须,默认2。缓存模式 --><!-- APP_CACHE_MODE -1:LOAD_DEFAULT,0:LOAD_NORMAL,1:LOAD_CACHE_ELSE_NETWORK,2:LOAD_NO_CACHE,3:LOAD_CACHE_ONLY -->
27
	<config name="cache_mode" value="2"/>
27
	<config name="cache_mode" value="2"/>

+ 0 - 4
display-client/lint.xml

1
<?xml version="1.0" encoding="UTF-8"?>
2
<lint>
3
    
4
</lint>

+ 1 - 1
display-server/web/biz/js/more/push/PushChat.js

26
					refreshOnlineList();
26
					refreshOnlineList();
27
				});
27
				});
28
			});
28
			});
29
		},"http://123.57.35.51/push/mobiledata?action=getLRUSession",true);
29
		},"http://123.57.35.51:8083/push/mobiledata?action=getLRUSession",true);
30
//		},"http://192.168.51.155:8080/push/mobiledata?action=getLRUSession",true);
30
//		},"http://192.168.51.155:8080/push/mobiledata?action=getLRUSession",true);
31
	}
31
	}
32
	/*进入界面先销毁链接,防止离开此界面时没有断开*/
32
	/*进入界面先销毁链接,防止离开此界面时没有断开*/

+ 1 - 1
push-server/etc/spring-push.xml

78
    
78
    
79
	<bean id="serverAcceptor" class="org.apache.mina.transport.socket.nio.NioSocketAcceptor"
79
	<bean id="serverAcceptor" class="org.apache.mina.transport.socket.nio.NioSocketAcceptor"
80
		init-method="bind" destroy-method="unbind">
80
		init-method="bind" destroy-method="unbind">
81
		<property name="defaultLocalAddress" value=":23456" />
81
		<property name="defaultLocalAddress" value=":7070" />
82
		<property name="handler" ref="defaultIOHandler" />
82
		<property name="handler" ref="defaultIOHandler" />
83
		<property name="filterChainBuilder" ref="filterChainBuilder" />
83
		<property name="filterChainBuilder" ref="filterChainBuilder" />
84
		<property name="reuseAddress" value="true" /> <!-- 默认false -->
84
		<property name="reuseAddress" value="true" /> <!-- 默认false -->