微信加入项目修改

This commit is contained in:
yuanke 2016-08-01 15:35:29 +08:00
parent 2c86ae3eb2
commit f016027e8f
1 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ class WechatsController < ActionController::Base
end
end
raise "该二维码已失效!"
raise "该二维码已失效"
rescue => e
logger.error e.inspect
@ -313,7 +313,7 @@ class WechatsController < ActionController::Base
ps = ProjectsService.new
status = ps.join_project({invite_code: project.invite_code}, user)
if status[:state] != 0
if status != 0
raise ProjectsService::JoinProjectError.message(status)
end