forked from cxapython/unidbg-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update SignController add ThreadPool
- Loading branch information
Showing
4 changed files
with
94 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.worker; | ||
|
||
import com.crack.MaFengWo; | ||
import com.github.unidbg.worker.Worker; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
public class MFWWorker implements Worker { | ||
private final MaFengWo mafengwo ; | ||
|
||
public MFWWorker() { | ||
mafengwo = new MaFengWo(); | ||
// System.out.println("Create: " + mafengwo); | ||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
// System.out.println("MFWWorker close()"); | ||
mafengwo.destroy(); | ||
} | ||
|
||
public Map<String, String> worker(String... args) { | ||
// System.out.println("MFWWorker worker: " + Thread.currentThread().getName() + Thread.currentThread().getId()); | ||
String url = args[0]; | ||
return mafengwo.xPreAuthencode(url); | ||
} | ||
} |