liukangdong
2024-05-21 4658e9353f7aa76a833d36ed988d77bf362ad0ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package cn.emay.sdk.task;
 
import java.io.File;
 
import cn.emay.sdk.common.CommonConstants;
import cn.emay.sdk.util.HostUtil;
 
public class ContrastHostTask implements Runnable {
 
    public File file;
 
    public String appId;
 
    public String secretkey;
 
    public ContrastHostTask(File file, String appId, String secretkey) {
        this.file = file;
        this.appId = appId;
        this.secretkey = secretkey;
    }
 
    @Override
    public void run() {
        if (CommonConstants.interList != null) {
            CommonConstants.bestUrl = HostUtil.getUrl(appId, secretkey);
            HostUtil.contrastWrite(file, appId, CommonConstants.bestUrl);
            CommonConstants.isBest = true;
        }
    }
 
}