From e92c772a05d27f76cb46635556fcda38c754606a Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 12 一月 2026 13:55:21 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java b/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
index 3b15036..f596370 100644
--- a/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
+++ b/ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/H5AICallbackController.java
@@ -20,8 +20,10 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.time.LocalDateTime;
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Objects;
 
 /**
  * <p>
@@ -168,6 +170,10 @@
         if(sysAppUser != null){
             sysInspection.setAppUserId(sysAppUser.getId());
             sysInspection.setClinicId(sysAppUser.getClinicId());
+            LocalDateTime vipEndTime = sysAppUser.getVipEndTime();
+            if(Objects.nonNull(vipEndTime) && vipEndTime.isAfter(LocalDateTime.now())){
+                sysInspection.setIsPay(1);
+            }
         }
         sysInspection.setOutUserId(outUserId);
         sysInspection.setBirthday(birthday);
@@ -176,12 +182,12 @@
         // 小程序检测
         sysInspection.setInspectionType(2);
 
-        // TODO 舌诊信息
+        // 舌诊信息
         JSONObject phyTongueInfo = jsonObject.getJSONObject("phyTongueInfo");
         JSONObject tongueNatureColorInfo = phyTongueInfo.getJSONObject("tongueNatureColorInfo"); // 舌色信息
         String tongueNatureColor = tongueNatureColorInfo.getString("tongueNatureColorClinical"); // 舌色临床意义
         sysInspection.setTongueNatureColor(tongueNatureColor);
-        // TODO 面诊信息
+        // 面诊信息
         JSONObject phyFaceInfo = jsonObject.getJSONObject("phyFaceInfo");
         JSONObject lipColorInfo = phyFaceInfo.getJSONObject("lipColorInfo"); // 唇色信息
         String lipColorClinical = lipColorInfo.getString("lipColorClinical"); // 唇色临床意义
@@ -246,6 +252,7 @@
         sysInspection.setDeviceAccountId(device_account_id);
         // 硬件检测
         sysInspection.setInspectionType(3);
+        sysInspection.setIsPay(1);
 
         // 通过手机号查询小程序用户
         TSysAppUser sysAppUser = sysAppUserService.getOne(Wrappers.lambdaQuery(TSysAppUser.class)

--
Gitblit v1.7.1