|
@@ -107,7 +107,7 @@
|
|
}
|
|
}
|
|
async function handleConfirm() {
|
|
async function handleConfirm() {
|
|
const { id, machineCode } = await validate();
|
|
const { id, machineCode } = await validate();
|
|
- let res = await checkMachineCode({ machineCode });
|
|
|
|
|
|
+ let res = await checkMachineCode({ machineCode:machineCode.trim() });
|
|
console.log('res', res, !id);
|
|
console.log('res', res, !id);
|
|
if (!id && res && res.id) {
|
|
if (!id && res && res.id) {
|
|
createConfirm({
|
|
createConfirm({
|
|
@@ -137,7 +137,7 @@
|
|
const apiData = {
|
|
const apiData = {
|
|
...params,
|
|
...params,
|
|
snCodes:params.snCodes && params.snCodes.replace(/\s*/g,""),
|
|
snCodes:params.snCodes && params.snCodes.replace(/\s*/g,""),
|
|
- machineCode:params.machineCode && params.machineCode.replace(/\s*/g,""),
|
|
|
|
|
|
+ machineCode:params.machineCode.replace(/\s*/g,""),
|
|
userId: params.id,
|
|
userId: params.id,
|
|
};
|
|
};
|
|
let res = await authorizeInstalladdOrUpdate(apiData);
|
|
let res = await authorizeInstalladdOrUpdate(apiData);
|