问题修改
This commit is contained in:
parent
4378116cff
commit
34ef3fd3ec
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue