问题修改

This commit is contained in:
hayu 2025-08-05 20:12:36 +08:00
parent 4378116cff
commit 34ef3fd3ec
1 changed files with 10 additions and 3 deletions

View File

@ -118,6 +118,7 @@
<script>
import ImageUtils from "../../services/utils/imageUtils";
import {decryptWithSM4} from "../../utils/sm";
export default {
data() {
@ -510,11 +511,17 @@ export default {
"Content-Type": "application/json;charset=UTF-8"
},
success: async (res) => {
if (!res.data.code){
res=JSON.parse(decryptWithSM4(res.data))
} else {
res =res.data
}
console.log("res", res);
console.log("res.data",res.data)
const {data: resData} = res
if (resData.data.data.code===0){
if (resData.data.data.result) {
this.queryCodeParams.maCode = resData.data.data.result
if (resData.data.code===0){
if (resData.data.result) {
this.queryCodeParams.maCode = resData.data.result
await this.closeCamera();
await this.getCode();
await uni.showToast({