自主開發微信雲控系統源碼與群控系統源碼區別,及技術原理
//服務端推送接口,支持三個接口推送
//1.PushMessageToSingle接口:支持對單個用戶進行推送
//2.PushMessageToList接口:支持對多個用戶進行推送,建議為50個用戶
//
//單推接口案例
public function pushMessageToSingle(){
//var_dump(‘./‘.ROOT . ‘touchuan/‘ . ‘IGt.Push.php‘);exit();
//require_once(‘./‘.ROOT . ‘touchuan/‘ . ‘IGt.Push.php‘);
//$igt = new \IGeTui(HOST,APPKEY,MASTERSECRET);
$igt = new \IGeTui(NULL,APPKEY,MASTERSECRET,false);
//消息模版:
// 1.TransmissionTemplate:透傳功能模板
// 2.LinkTemplate:通知打開鏈接功能模板
// 3.NotificationTemplate:通知透傳功能模板
// 4.NotyPopLoadTemplate:通知彈框下載功能模板
// $template = IGtNotyPopLoadTemplateDemo();
// $template = IGtLinkTemplateDemo();
// $template = IGtNotificationTemplateDemo();
$template = $this->IGtTransmissionTemplateDemo();
我們研發的群控系統不同於市場上的群控系統,是可以運行在任何電腦上的,不用再購買另外一臺服務器,對群控系統的操作便捷性以及實用性都做了極大的優化。該系統的實現主要分為5個部分:pc端操作軟件、adb底層傳輸、手機端模擬點擊、手機端底層劫持、控制授權的web服務器端授權系統。部分核心源代碼為:
new Thread(new Runnable() {
public void run() {
try {
if(popUp)
screenshot = Utilities.bitmapMatrix(screenshot);
else
screenshot = Utilities.bitmapMatrix1(screenshot);
baos = new ByteArrayOutputStream();
screenshot.compress(Bitmap.CompressFormat.JPEG, 30, baos);
data = baos.toByteArray();
dos.writeInt(data.length);
dos.write(data);
if (baos != null) {
baos.flush();
}
} catch (Exception e) {
} finally {
if (baos != null) {
try {
baos.close();
baos = null;
} catch (IOException ioe) {
}
}
screenshot.recycle();
screenshot = null;
data = null;
}
try {
if (baos != null) {
baos.close();
baos = null;
}
if (screenshot != null) {
screenshot.recycle();
screenshot = null;
data = null;
}
} catch (Exception e) {
e.printStackTrace();
}
System.gc();
}}).run();
微信雲控系統是相對於微信群控系統而言的,微信雲控系統源碼與群控系統源碼的區別在於,群控系統是通過usb線控制手機去執行命令,而微信雲控系統是通過網絡傳輸命令去執行命令。在微信群控系統中,因為受限於電腦端口的約束,以及adb的約束,一臺電腦最多直接控制上百部手機,而在微信雲控系統中,一臺電腦可以控制成千上萬部手機。可以給無數手機下發命令。不會受限於端口這些。
自主開發微信雲控系統源碼與群控系統源碼區別,及技術原理