|
@@ -349,7 +349,7 @@ export async function uploadFile(data) {
|
|
|
ContentType: 'application/x-www-form-urlencoded',
|
|
|
},
|
|
|
});
|
|
|
- if (!res.data.dentry) {
|
|
|
+ if (res.data.errmsg) {
|
|
|
message.error(res.data.errmsg);
|
|
|
throw new Error(res.data.errmsg);
|
|
|
}
|
|
@@ -360,7 +360,7 @@ export async function bindDDCode(userId, code) {
|
|
|
let res = await request(`/api/v1/purchase/bom/ding/set-ding-user-code?ucode=${userId}:${code}`, {
|
|
|
method: 'GET',
|
|
|
});
|
|
|
- if (res.data.errcode != 0) {
|
|
|
+ if (res.data.errmsg) {
|
|
|
message.error(res.data.errmsg);
|
|
|
throw new Error(res.data.errmsg);
|
|
|
}
|