Browse Source

fix:数据

super-yimizi 2 tháng trước cách đây
mục cha
commit
70bfe0fd74
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      application/api/controller/AiMeasurement.php

+ 2 - 2
application/api/controller/AiMeasurement.php

@@ -312,8 +312,8 @@ class AiMeasurement extends Api
             //         $this->error("请上传{$angle}角度的身体照片");
             //     }
             // }
-            // 直接使用档案的  body_photos  字段转json
-            $photos = json_decode($profile->body_photos, true);
+            // 直接使用档案的 
+            $photos = $profile->body_photos_text;
 
             // 安全调用第三方AI服务 - 确保身高为数字格式
             $heightCm = is_numeric($profile->height) ? floatval($profile->height) : 0;