Commit e6b2c904 authored by qinhaitao's avatar qinhaitao

fix: 更新返回值

parent 2a44674c
...@@ -57,7 +57,7 @@ export default class AwardsService extends UserService { ...@@ -57,7 +57,7 @@ export default class AwardsService extends UserService {
} }
} }
) )
return updateResult ? 1 : CODE_TYPES.ERROR_NO_STOCK return updateResult === 1 ? 1 : CODE_TYPES.ERROR_NO_STOCK
} catch (e) { } catch (e) {
console.log(`扣库存失败:`, e) console.log(`扣库存失败:`, e)
return CODE_TYPES.SYSTEM_ERROR return CODE_TYPES.SYSTEM_ERROR
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment