<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[个人测试记录]]></title><description><![CDATA[小程序，公众号等测试]]></description><link>http://www.jaweyhuang.com/</link><image><url>http://www.jaweyhuang.com/favicon.png</url><title>个人测试记录</title><link>http://www.jaweyhuang.com/</link></image><generator>Ghost 2.0</generator><lastBuildDate>Fri, 20 Aug 2021 13:37:17 GMT</lastBuildDate><atom:link href="http://www.jaweyhuang.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[小程序如何解决调用豆瓣API的403错误]]></title><description><![CDATA[由于小程序请求的地址都是固定的，豆瓣API对小程序请求地址有限制，所以就出现了403的错误，那么就换成自己的域名即可。]]></description><link>http://www.jaweyhuang.com/xiao-cheng-xu-ru-he-jie-jue-diao-yong-dou-ban-apide-403cuo-wu/</link><guid isPermaLink="false">5b83a571d48bec2d3af2bf25</guid><category><![CDATA[小程序]]></category><dc:creator><![CDATA[jaweyhuang]]></dc:creator><pubDate>Mon, 27 Aug 2018 07:31:02 GMT</pubDate><media:content url="http://www.jaweyhuang.com/content/images/2018/08/22.jpg" medium="image"/><content:encoded><![CDATA[<img src="http://www.jaweyhuang.com/content/images/2018/08/22.jpg" alt="小程序如何解决调用豆瓣API的403错误"><p>由于小程序请求的地址都是固定的，豆瓣API对小程序请求地址有限制，所以就出现了403的错误，那么就换成自己的域名即可。</p><h1 id="">解决方法</h1>
<p><strong>nginx做代理，并改变请求的Referer和User-Agent头部信息</strong></p>
<pre><code>location  /v2/ {
       proxy_store off;
       proxy_redirect off;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header Referer 'no-referrer-when-downgrade';
       proxy_set_header User-Agent 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36';
       proxy_connect_timeout 600;
       proxy_read_timeout 600;
       proxy_send_timeout 600;
       proxy_pass https://api.douban.com/v2/;
}
</code></pre>
<p>在自己的服务器中做个nginx的转发，NGINX的配置如上。<br>
千万不要忘记在微信小程序后台配置可信任的的域名地址。</p>
]]></content:encoded></item><item><title><![CDATA[Welcome to Ghost]]></title><description><![CDATA[Welcome, it's great to have you here.
We know that first impressions are important, so we've populated your new site with some initial getting started posts that will help you get familiar with everything in no time.]]></description><link>http://www.jaweyhuang.com/welcome/</link><guid isPermaLink="false">5b8372034af3cf7deb6a91ea</guid><category><![CDATA[未分类]]></category><dc:creator><![CDATA[jaweyhuang]]></dc:creator><pubDate>Mon, 27 Aug 2018 03:37:45 GMT</pubDate><media:content url="https://casper.ghost.org/v2.0.0/images/welcome-to-ghost.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://casper.ghost.org/v2.0.0/images/welcome-to-ghost.jpg" alt="Welcome to Ghost"><p>👋 Welcome, it's great to have you here.</p><p>We know that first impressions are important, so we've populated your new site with some initial <strong>getting started</strong> posts that will help you get familiar with everything in no time. This is the first one!</p><p><strong>A few things you should know upfront</strong>:</p><ol><li>Ghost is designed for ambitious, professional publishers who want to actively build a business around their content. That's who it works best for. </li><li>The entire platform can be modified and customised to suit your needs. It's very powerful, but does require some knowledge of code. Ghost is not necessarily a good platform for beginners or people who just want a simple personal blog. </li><li>For the best experience we recommend downloading the <a href="https://ghost.org/downloads/">Ghost Desktop App</a> for your computer, which is the best way to access your Ghost site on a desktop device. </li></ol><p>Ghost is made by an independent non-profit organisation called the Ghost Foundation. We are 100% self funded by revenue from our <a href="https://ghost.org/pricing">Ghost(Pro)</a> service, and every penny we make is re-invested into funding further development of free, open source technology for modern publishing.</p><p>The version of Ghost you are looking at right now would not have been made possible without generous contributions from the open source <a href="https://github.com/TryGhost">community</a>.</p><h2 id="next-up-the-editor">Next up, the editor</h2><p>The main thing you'll want to read about next is probably: <a href="http://www.jaweyhuang.com/the-editor/">the Ghost editor</a>. This is where the good stuff happens.</p><blockquote><em>By the way, once you're done reading, you can simply delete the default <strong>Ghost</strong> user from your team to remove all of these introductory posts! </em></blockquote>]]></content:encoded></item></channel></rss>