|
@@ -23,6 +23,7 @@ import com.gree.mall.miniapp.plus.service.*;
|
|
|
import com.gree.mall.miniapp.utils.IpUtil;
|
|
|
import com.gree.mall.miniapp.utils.StringUtil;
|
|
|
import com.gree.mall.miniapp.utils.ocr.OCRUtil;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -39,6 +40,7 @@ import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class WorkerLogic {
|
|
|
|
|
|
|
|
@@ -629,6 +631,7 @@ public class WorkerLogic {
|
|
|
inputStream.close();
|
|
|
baos.close();
|
|
|
final String name = ocrUtil.handwritingORC(new ByteArrayInputStream(baos.toByteArray()));
|
|
|
+ log.info("OCR识别名称:" + name + ", 师傅名称:" + user.getNickName());
|
|
|
if (!StrUtil.equals(name, user.getNickName().replace(" ", ""))) {
|
|
|
return false;
|
|
|
}
|