diff --git a/.env.development b/.env.development
index 5d94317..f4e8f9c 100644
--- a/.env.development
+++ b/.env.development
@@ -5,6 +5,6 @@ NODE_ENV='development'
VITE_APP_TITLE = 'Metavatar-PC'
VITE_APP_PORT = 3000
-# VITE_APP_BASE_API = 'https://photo.metavatar.cc/C'
VITE_APP_BASE_API = 'https://phototest.metavatar.cc/C'
+# VITE_APP_BASE_API = 'https://phototest.metavatar.cc/C/api'
diff --git a/.env.production b/.env.production
index 76cae70..e21a6ad 100644
--- a/.env.production
+++ b/.env.production
@@ -5,5 +5,5 @@ NODE_ENV='production'
VITE_APP_TITLE = 'Metavatar-PC'
VITE_APP_PORT = 3000
-# VITE_APP_BASE_API = 'https://photo.metavatar.cc/C'
VITE_APP_BASE_API = 'https://photo.metavatar.cc/C'
+# VITE_APP_BASE_API = 'https://photo.metavatar.cc/C/C'
diff --git a/src/apis/createVideo.js b/src/apis/createVideo.js
index cf150a4..5ef7e2c 100644
--- a/src/apis/createVideo.js
+++ b/src/apis/createVideo.js
@@ -1,7 +1,7 @@
import request from "@/utils/request.js";
/**
- * @description 获取人脸列表
+ * @description 获取系统人脸列表
* @params pageNum, pageSize
* @returns data
*/
@@ -13,7 +13,7 @@ export function personPhotoList(pageNum, pageSize, sendType) {
}
/**
- * @description 获取人脸列表
+ * @description 获取个人人脸列表
* @params pageNum, pageSize
* @returns data
*/
@@ -25,7 +25,7 @@ export function personPhotoUserListList(pageNum, pageSize, sendType) {
}
/**
- * @description 上传图片
+ * @description 保存图片
* @params data
* @returns data
*/
@@ -61,6 +61,31 @@ export function delImgApi(id) {
})
}
+/**
+ * @description 检测图片是否敏感(百度)
+ * @params id
+ * @returns data
+ */
+export function checkPhotoApi(material) {
+ return request({
+ url: `api/personPhoto/checkPhoto?material=${material}`,
+ method: 'get',
+ })
+}
+
+/**
+ * @description 检测人脸(邃芒)
+ * @params id
+ * @returns data
+ */
+export function checkFaceApi(data) {
+ return request({
+ url: `suimang/image_qualit`,
+ method: 'post',
+ data: { img: data }
+ })
+}
+
/**
* @description 上传音频
* @params data
diff --git a/src/assets/img/tips.png b/src/assets/img/tips.png
new file mode 100644
index 0000000..8299116
Binary files /dev/null and b/src/assets/img/tips.png differ
diff --git a/src/components/myLoading.vue b/src/components/myLoading.vue
index 77dc700..008f0d1 100644
--- a/src/components/myLoading.vue
+++ b/src/components/myLoading.vue
@@ -13,7 +13,10 @@
>
- {{ $t("myCreating.loading") }}
+ {{ $t(`myCreating.${tips}`) }},{{ $t("myCreating.loading1") }}
@@ -27,6 +30,9 @@ const props = defineProps({
isLoading: {
required: true, //是否必传
},
+ tips: {
+ required: false, //是否必传
+ },
});