Commit fa19d220 authored by 赵啸非's avatar 赵啸非

添加好差评

parent f64091b1
package com.mortals.xhx.module.capture.model;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
/**
......@@ -20,6 +22,8 @@ public class File {
* 文件类型 base64
* data:image/jpg;base64,/8j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQ//2Q==
*/
@JSONField(name="Base64String")
@JsonProperty("Base64String")
private String Base64String;
}
......@@ -36,6 +36,7 @@ public class CaptureServiceImpl implements CaptureService {
public Rest<List<File>> getCapture() {
url = url + "&watiTime=" + timeout;
String resp = HttpUtil.get(url, timeout * 1000);
log.info("获取拍照! http resp:{}", resp);
if (!ObjectUtils.isEmpty(resp)) {
Rest<List<File>> rest = JSON.parseObject(resp, new TypeReference<Rest<List<File>>>() {
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment