feat:小程序新的指纹唯一编号
This commit is contained in:
1 parent
150b8b3ac7
commit
d7fbf72df4
7 files changed
+47
-3
No files matched your search
@@ -31,6 +31,7 @@ import { ref, reactive, watch, onUnmounted } from "vue"
|
||||
import { constant } from "@@/index"
|
||||
import { userApi } from "@@/api"
|
||||
import { getMiniUniqueCode, getDeviceKey } from "@@/utils/mini-tool"
|
||||
import { buildUserDeviceFingerprint } from "@@/utils/device-unique"
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -109,9 +110,11 @@ const doSubmit = async () => {
|
||||
if (!isPass) return
|
||||
|
||||
uni.showLoading({ title: "验证中...", mask: true })
|
||||
const fingerprint = await buildUserDeviceFingerprint(false)
|
||||
const params = {
|
||||
mobilePhone: form.mobilePhone,
|
||||
code: form.code,
|
||||
deviceUniqueCode: fingerprint?.fingerprint,
|
||||
}
|
||||
const res: any = await userApi.verifyDevice(params)
|
||||
if (res.code != 0) {
|
||||
|
||||
Reference in new issue
Block a user