lib/wechat/api/util.rb in wechat-api-0.4.0 vs lib/wechat/api/util.rb in wechat-api-0.4.1
- old
+ new
@@ -30,11 +30,10 @@
post 'qrcode/create', params
end
def js_ticket
- res = get 'ticket/getticket', type: :jsapi
- res['ticket']
+ get 'ticket/getticket', type: :jsapi
end
def sign(params)
str = params.to_a.sort.map { |p| p.join('=') }.join('&')
logger.debug { "to_sign: #{str}" }