class Wechats::JsSdkSignaturesController < ApplicationController def create signature = Util::Wechat.js_sdk_signature(params[:url], params[:noncestr], params[:timestamp]) render_ok(signature: signature) rescue Util::Wechat::Error => ex render_error(ex.message) end end