forgeplus/app/controllers/weapps/verifies_controller.rb

8 lines
242 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class Weapps::VerifiesController < Weapps::BaseController
before_action :require_wechat_login!
def create
valid = Wechat::Weapp.verify?(session_openid, params[:verify_string], params[:signature])
render_ok(valid: valid)
end
end