add debug

This commit is contained in:
sulennnn 2019-09-29 10:57:06 +08:00
parent d7297fd5c1
commit e4fffdd18f
1 changed files with 7 additions and 0 deletions

View File

@ -159,11 +159,18 @@ module Mobile
# add by qiubing end
end
# {status:0, result:result}
Rails.logger.info("status: ", 0)
Rails.logger.info("result: ", result)
Rails.logger.info("modificationLines: ", modificationLines)
{status:0, result:result, modificationLines:modificationLines}
else
Rails.logger.info("status: ", 1)
Rails.logger.info("message: ", 'the project did\'t exist or has been deleted')
{status:1, message: 'the project did\'t exist or has been deleted' }
end
else
Rails.logger.info("status: ", 1)
Rails.logger.info("message: ", 'the project did\'t exist or has been deleted')
{status:1, message: 'the project did\'t exist or has been deleted' }
end
end