Commit 33f09706 authored by 李尚科's avatar 李尚科

house tool fix

parent 929b293a
......@@ -96,10 +96,10 @@ class ToolController extends Controller {
total_price: { type: 'string', required: true }
}
ctx.validate(rule, input_parmas);
if (!parseInt(invest_payment)) {
if (!parseFloat(input_parmas.invest_payment)) {
ctx.failed('现有金额不能为0');
}
if (!parseInt(total_price)) {
if (!parseFloat(input_parmas.total_price)) {
ctx.failed('面积不能为0');
}
// const target_house = await ctx.blockModel.HousePriceMap.one({ where: { id: input_parmas.area_code } });
......
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