diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index 118aea0f2..9afca5c3a 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -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