whyclj
2020-04-25 230c6b18e71884f9cb120142ac8ae12c54b1fc3d
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
32
33
34
35
36
37
38
39
40
41
package com.fgkj.actions;
 
import com.fgkj.services.AuthService;
import com.fgkj.services.FaceDetect;
 
 
public class FaceIdentify extends ActionUtil{
    private String json;    
    private String result;
    
    /**
     *     获取refresh_token 值
     * @return
     */
    public String getAuth(){
        String json = AuthService.getAuth();
        result = getGson().toJson(json);
        return SUCCESS;
    }
 
    /**
     *   检测人脸
     * @return
     */
    public String faceDetect(){
        String result = FaceDetect.faceDetect(json);
        result = getGson().toJson(result);
        return SUCCESS;
    }
    
    
 
    public String getResult() {
        return result;
    }
 
 
    public void setJson(String json) {
        this.json = json;
    }
}