{"action":"created","issue":{"url":"https://api.github.com/repos/Eric-Guo/wechat/issues/52","labels_url":"https://api.github.com/repos/Eric-Guo/wechat/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/Eric-Guo/wechat/issues/52/comments","events_url":"https://api.github.com/repos/Eric-Guo/wechat/issues/52/events","html_url":"https://github.com/Eric-Guo/wechat/issues/52","id":107451684,"number":52,"title":"调用jsapi_ticket出现reach max api daily quota limit hint: [VAB1bA0573vr20](45009)","user":{"login":"goofansu","id":1143191,"avatar_url":"https://avatars.githubusercontent.com/u/1143191?v=3","gravatar_id":"","url":"https://api.github.com/users/goofansu","html_url":"https://github.com/goofansu","followers_url":"https://api.github.com/users/goofansu/followers","following_url":"https://api.github.com/users/goofansu/following{/other_user}","gists_url":"https://api.github.com/users/goofansu/gists{/gist_id}","starred_url":"https://api.github.com/users/goofansu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goofansu/subscriptions","organizations_url":"https://api.github.com/users/goofansu/orgs","repos_url":"https://api.github.com/users/goofansu/repos","events_url":"https://api.github.com/users/goofansu/events{/privacy}","received_events_url":"https://api.github.com/users/goofansu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"feitian124","id":1425383,"avatar_url":"https://avatars.githubusercontent.com/u/1425383?v=3","gravatar_id":"","url":"https://api.github.com/users/feitian124","html_url":"https://github.com/feitian124","followers_url":"https://api.github.com/users/feitian124/followers","following_url":"https://api.github.com/users/feitian124/following{/other_user}","gists_url":"https://api.github.com/users/feitian124/gists{/gist_id}","starred_url":"https://api.github.com/users/feitian124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feitian124/subscriptions","organizations_url":"https://api.github.com/users/feitian124/orgs","repos_url":"https://api.github.com/users/feitian124/repos","events_url":"https://api.github.com/users/feitian124/events{/privacy}","received_events_url":"https://api.github.com/users/feitian124/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-09-21T06:27:22Z","updated_at":"2015-10-08T12:06:42Z","closed_at":"2015-10-08T12:05:23Z","body":"每次进入搜索页面就调用一次api填充页面的jssdk签名，因为在搜索页面中我要使用jssdk获取用户的地理位置。\r\n\r\n示例controller如下：\r\n\r\n``` ruby\r\nclass SearchesController < ApplicationController\r\n  before_action :authenticate_user!\r\n  before_action :set_jssdk\r\n\r\n  def new\r\n    @query = Query.new\r\n  end\r\n\r\n  def set_jssdk\r\n      @hash = Wechat.api.jsapi_ticket.signature(request.original_url)\r\n  end\r\nend\r\n```\r\n\r\n问题：出现`reach max api daily quota limit hint`错误，但在重启rails服务后正常。\r\n\r\n说明：\r\n* appid和secret没有给别人使用\r\n* 只开了一个rails服务\r\n"},"comment":{"url":"https://api.github.com/repos/Eric-Guo/wechat/issues/comments/146517981","html_url":"https://github.com/Eric-Guo/wechat/issues/52#issuecomment-146517981","issue_url":"https://api.github.com/repos/Eric-Guo/wechat/issues/52","id":146517981,"user":{"login":"goofansu","id":1143191,"avatar_url":"https://avatars.githubusercontent.com/u/1143191?v=3","gravatar_id":"","url":"https://api.github.com/users/goofansu","html_url":"https://github.com/goofansu","followers_url":"https://api.github.com/users/goofansu/followers","following_url":"https://api.github.com/users/goofansu/following{/other_user}","gists_url":"https://api.github.com/users/goofansu/gists{/gist_id}","starred_url":"https://api.github.com/users/goofansu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goofansu/subscriptions","organizations_url":"https://api.github.com/users/goofansu/orgs","repos_url":"https://api.github.com/users/goofansu/repos","events_url":"https://api.github.com/users/goofansu/events{/privacy}","received_events_url":"https://api.github.com/users/goofansu/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T12:06:42Z","updated_at":"2015-10-08T12:06:42Z","body":"终于可以升级了，感谢"}}