问题修改
This commit is contained in:
parent
4378116cff
commit
34ef3fd3ec
|
|
@ -118,6 +118,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ImageUtils from "../../services/utils/imageUtils";
|
import ImageUtils from "../../services/utils/imageUtils";
|
||||||
|
import {decryptWithSM4} from "../../utils/sm";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -510,11 +511,17 @@ export default {
|
||||||
"Content-Type": "application/json;charset=UTF-8"
|
"Content-Type": "application/json;charset=UTF-8"
|
||||||
},
|
},
|
||||||
success: async (res) => {
|
success: async (res) => {
|
||||||
|
if (!res.data.code){
|
||||||
|
res=JSON.parse(decryptWithSM4(res.data))
|
||||||
|
} else {
|
||||||
|
res =res.data
|
||||||
|
}
|
||||||
console.log("res", res);
|
console.log("res", res);
|
||||||
|
console.log("res.data",res.data)
|
||||||
const {data: resData} = res
|
const {data: resData} = res
|
||||||
if (resData.data.data.code===0){
|
if (resData.data.code===0){
|
||||||
if (resData.data.data.result) {
|
if (resData.data.result) {
|
||||||
this.queryCodeParams.maCode = resData.data.data.result
|
this.queryCodeParams.maCode = resData.data.result
|
||||||
await this.closeCamera();
|
await this.closeCamera();
|
||||||
await this.getCode();
|
await this.getCode();
|
||||||
await uni.showToast({
|
await uni.showToast({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue