瀏覽代碼

测试调试报错

tongfeng 2 年之前
父節點
當前提交
936e9c49f2

+ 0 - 4
eladmin-system/src/main/java/me/zhengjie/application/admin/controller/AdminOrderController.java

@@ -254,10 +254,6 @@ public class AdminOrderController {
 	//@RequestMapping("/face-compare")
 	@AnonymousPostMapping("/face-compare")
 	public AppBaseResponse faceCompare(@RequestBody CompareImageVo compareImageVo){
-		String base64 = compareImageVo.getBase64();
-		if (StringUtils.isEmpty(base64)){
-			return AppBaseResponse.error(ResultCode.PARAM_IS_BLANK);
-		}
 		return adminOrderService.faceCompare(BeanCopyUtils.convertObj(compareImageVo, CompareImageDto.class));
 	}
 

+ 1 - 2
eladmin-system/src/main/java/me/zhengjie/base/util/JuheServiceUtil.java

@@ -88,8 +88,7 @@ public class JuheServiceUtil {
                 String reason = jsonObj.getString("reason");
                 JSONObject result = jsonObj.getJSONObject("result");;
                 if (! "成功".equals(reason)){
-                    log.info("错误信息"+result.getString("message"));
-                    thirdPartyInterfaceEntity.setMessage("人脸比对次数不足");
+                    thirdPartyInterfaceEntity.setMessage(result.getString("message"));
                     thirdPartyInterfaceEntity.setResult(0);
                     return thirdPartyInterfaceEntity;
                 }