You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
286 B
8 lines
286 B
5 years ago
|
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
|