微信加入项目修改
This commit is contained in:
parent
2c86ae3eb2
commit
f016027e8f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue