|
|
@ -1,6 +1,6 @@
|
|
|
|
class Wechats::JsSdkSignaturesController < ApplicationController
|
|
|
|
class Wechats::JsSdkSignaturesController < ApplicationController
|
|
|
|
def create
|
|
|
|
def create
|
|
|
|
timestamp = (Time.now.to_f * 1000).to_i
|
|
|
|
timestamp = Time.now.to_i
|
|
|
|
noncestr = ('A'..'z').to_a.sample(8).join
|
|
|
|
noncestr = ('A'..'z').to_a.sample(8).join
|
|
|
|
signature = Util::Wechat.js_sdk_signature(params[:url], noncestr, timestamp)
|
|
|
|
signature = Util::Wechat.js_sdk_signature(params[:url], noncestr, timestamp)
|
|
|
|
|
|
|
|
|
|
|
|