<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[吐司猫部落]]></title> 
<description><![CDATA[记录个人生活点滴，发布各种网络资源！]]></description>
<link>http://tusimao.free.fr/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>PHP API开发：通用响应格式与状态码规范笔记</title>
	<link>http://tusimao.free.fr/post/72</link>
	<description><![CDATA[<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	为了确保接口的返回格式统一且易于维护，我整理了一些通用的响应格式和状态码规范。这些笔记不仅帮助我在开发过程中保持一致性，也便于后续的调试和维护。
</p>
<h3 class="wp-block-heading" id="wznav_0" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	设置响应头
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	每个API的响应头可以统一设置如下，以确保跨域访问和正确的内容类型：
</p>
<pre class="wp-block-zibllblock-enlighter" style="box-sizing:border-box;overflow:auto;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;color:#4E5358;word-break:break-all;overflow-wrap:break-word;background:0px 0px #FFFFFF;border:none;border-radius:4px;outline:0px !important;">
<div class="enlighter-default enlighter-v-standard enlighter-t-dracula enlighter-hover enlighter-linenumbers enlighter-overflow-scroll" style="box-sizing:border-box;line-height:1.4;overflow:hidden;text-wrap:wrap;margin:0px 0px 20px;padding:0px;position:relative;direction:ltr;border-radius:8px;background-color:#2D2E31;color:#7E9BF5;outline:0px !important;">
	
	<div class="enlighter-toolbar" style="box-sizing:border-box;outline:0px !important;opacity:0;position:absolute;right:10px;top:8px;z-index:10;transition:all 0.2s ease 0s;">
		
		<div class="enlighter-btn enlighter-btn-raw" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-copy" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-window" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

	</div>

	<div class="enlighter" style="box-sizing:border-box;width:840.999px;border-collapse:collapse;border-spacing:0px;padding:12px 0px;empty-cells:show;min-width:100%;font-size:10px;margin:0px;counter-reset:enlighter 0;max-height:400px;overflow-x:auto;outline:0px !important;overflow-y:auto !important;overflow-wrap:normal !important;">
		
		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">header</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'Access-Control-Allow-Origin:*'</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span><span class="enlighter-c0" style="box-sizing:border-box;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;outline:0px !important;"> // 允许所有来源访问</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">header</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'Access-Control-Allow-Method:POST,GET'</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span><span class="enlighter-c0" style="box-sizing:border-box;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;outline:0px !important;"> // 允许的访问方法</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">header</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'Content-type: application/json;charset=utf-8'</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span><span class="enlighter-c0" style="box-sizing:border-box;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;outline:0px !important;"> // 设置响应头编码为UTF-8</span>
			</div>

		</div>

	</div>

</div>
</pre>
<h3 class="wp-block-heading" id="wznav_1" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	JSON格式化
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	为了确保JSON数据的可读性和一致性，可以使用&nbsp;<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">json_encode</code>&nbsp;的以下选项：
</p>
<pre class="wp-block-zibllblock-enlighter" style="box-sizing:border-box;overflow:auto;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;color:#4E5358;word-break:break-all;overflow-wrap:break-word;background:0px 0px #FFFFFF;border:none;border-radius:4px;outline:0px !important;">
<div class="enlighter-default enlighter-v-standard enlighter-t-dracula enlighter-hover enlighter-linenumbers enlighter-overflow-scroll" style="box-sizing:border-box;line-height:1.4;overflow:hidden;text-wrap:wrap;margin:0px 0px 20px;padding:0px;position:relative;direction:ltr;border-radius:8px;background-color:#2D2E31;color:#7E9BF5;outline:0px !important;">
	
	<div class="enlighter-toolbar" style="box-sizing:border-box;outline:0px !important;opacity:0;position:absolute;right:10px;top:8px;z-index:10;transition:all 0.2s ease 0s;">
		
		<div class="enlighter-btn enlighter-btn-raw" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-copy" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-window" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

	</div>

	<div class="enlighter" style="box-sizing:border-box;width:840.999px;border-collapse:collapse;border-spacing:0px;padding:12px 0px;empty-cells:show;min-width:100%;font-size:10px;margin:0px;counter-reset:enlighter 0;max-height:400px;overflow-x:auto;outline:0px !important;overflow-y:auto !important;overflow-wrap:normal !important;">
		
		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">$options = JSON_NUMERIC_CHECK </span><span class="enlighter-g0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">|</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> JSON_PRETTY_PRINT </span><span class="enlighter-g0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">|</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> JSON_UNESCAPED_UNICODE </span><span class="enlighter-g0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">|</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> JSON_UNESCAPED_SLASHES;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">echo </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">json_encode</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">$response, $options</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

	</div>

</div>
</pre>
<ul class="wp-block-list" style="box-sizing:border-box;margin:10px 0px 20px 15px;padding:0px 0px 0px 15px;list-style-position:initial;list-style-image:initial;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">JSON_NUMERIC_CHECK</code>：将所有数字字符串转换为数字。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">JSON_PRETTY_PRINT</code>：格式化JSON，便于阅读。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">JSON_UNESCAPED_UNICODE</code>：不对中文字符进行转义。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:0px;">
		<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">JSON_UNESCAPED_SLASHES</code>：不对斜杠进行转义。
	</li>
</ul>
<h3 class="wp-block-heading" id="wznav_2" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	常见HTTP状态码
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	在处理HTTP请求时，以下是一些常见的状态码及其说明：
</p>
<ul class="wp-block-list" style="box-sizing:border-box;margin:10px 0px 20px 15px;padding:0px 0px 0px 15px;list-style-position:initial;list-style-image:initial;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">200</span>：请求成功，表示服务器成功处理了请求。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">400</span>：请求错误，比如参数错误或请求格式不正确。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">401</span>：未授权，通常指用户未提供有效的身份验证信息。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">403</span>：禁止访问，用户没有权限访问该资源。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:0px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">404</span>：资源未找到，表示请求的API端点不存在。
	</li>
</ul>
<h3 class="wp-block-heading" id="wznav_3" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:16.2px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">BaseResponse</code>&nbsp;响应格式
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	为了使API响应格式保持一致，可以使用一个通用的&nbsp;<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">BaseResponse</code>&nbsp;函数：
</p>
<pre class="wp-block-zibllblock-enlighter" style="box-sizing:border-box;overflow:auto;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;color:#4E5358;word-break:break-all;overflow-wrap:break-word;background:0px 0px #FFFFFF;border:none;border-radius:4px;outline:0px !important;">
<div class="enlighter-default enlighter-v-standard enlighter-t-dracula enlighter-hover enlighter-linenumbers enlighter-overflow-scroll" style="box-sizing:border-box;line-height:1.4;overflow:hidden;text-wrap:wrap;margin:0px 0px 20px;padding:0px;position:relative;direction:ltr;border-radius:8px;background-color:#2D2E31;color:#7E9BF5;outline:0px !important;">
	
	<div class="enlighter-toolbar" style="box-sizing:border-box;outline:0px !important;opacity:0;position:absolute;right:10px;top:8px;z-index:10;transition:all 0.2s ease 0s;">
		
		<div class="enlighter-btn enlighter-btn-raw" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-copy" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-window" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

	</div>

	<div class="enlighter" style="box-sizing:border-box;width:840.999px;border-collapse:collapse;border-spacing:0px;padding:12px 0px;empty-cells:show;min-width:100%;font-size:10px;margin:0px;counter-reset:enlighter 0;max-height:400px;overflow-x:auto;outline:0px !important;overflow-y:auto !important;overflow-wrap:normal !important;">
		
		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">function </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">BaseResponse</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">$code, $message, $data = </span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">[])</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">{</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> $response = </span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">[</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'code'</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> =</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">&gt;</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> $code,</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'message'</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> =</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">&gt;</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> $message,</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'data'</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> =</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">&gt;</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> $data</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">]</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-c0" style="box-sizing:border-box;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;outline:0px !important;"> // 设置响应头</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">header</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'Access-Control-Allow-Origin:*'</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">header</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'Access-Control-Allow-Method:POST,GET'</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">header</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">'Content-type: application/json;charset=utf-8'</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-c0" style="box-sizing:border-box;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;outline:0px !important;"> // 输出JSON</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:967.59px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> echo </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">json_encode</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">(</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">$response, JSON_NUMERIC_CHECK </span><span class="enlighter-g0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">|</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> JSON_PRETTY_PRINT </span><span class="enlighter-g0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">|</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> JSON_UNESCAPED_UNICODE </span><span class="enlighter-g0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">|</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> JSON_UNESCAPED_SLASHES</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">)</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-m0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#8BE9FD;">exit</span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">()</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">;</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">}</span>
			</div>

		</div>

	</div>

</div>
</pre>
<h3 class="wp-block-heading" id="wznav_4" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	接口文档规范
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	编写接口文档时，可以按照以下结构进行描述：
</p>
<ol class="wp-block-list" style="box-sizing:border-box;margin:10px 0px 20px 15px;padding:0px 0px 0px 15px;list-style-position:initial;list-style-image:initial;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">接口标题</span>：简要描述接口的功能。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">接口描述</span>：详细说明接口的作用。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">请求方法</span>：例如&nbsp;<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">POST</code>&nbsp;或&nbsp;<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">GET</code>。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">请求URL</span>：接口的访问地址。
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">请求参数</span>：
		<ul class="wp-block-list" style="box-sizing:border-box;outline:0px !important;margin:10px 0px 20px 15px;padding:0px 0px 0px 15px;list-style:disc;">
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
				参数名
			</li>
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
				类型
			</li>
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
				是否必填
			</li>
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:0px;">
				说明
			</li>
		</ul>
	</li>
	<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
		<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">返回参数</span>：
		<ul class="wp-block-list" style="box-sizing:border-box;outline:0px !important;margin:10px 0px 20px 15px;padding:0px 0px 0px 15px;list-style:disc;">
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
				参数名
			</li>
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:10px;">
				类型
			</li>
			<li style="box-sizing:border-box;outline:0px !important;margin-bottom:0px;">
				说明
			</li>
		</ul>
	</li>
</ol>
<h3 class="wp-block-heading" id="wznav_5" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	示例：用户登录API
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">接口标题</span>：用户登录
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">接口描述</span>：用于用户登录并获取Token。
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">请求方法</span>：<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">POST</code>
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">请求URL</span>：<code style="box-sizing:border-box;outline:0px !important;font-family:Menlo, Monaco, Consolas, &quot;font-size:14.4px;padding:2px 4px;color:#FF3C98;background-color:rgba(253, 153, 153, 0.2);border-radius:4px;margin:2px;">/api/v1/login</code>
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">请求参数</span>：
</p>
<figure class="wp-block-table" style="margin:0px 0px 20px;box-sizing:border-box;overflow-x:auto;border:none;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
<table class="has-fixed-layout" style="border-spacing:0px;background-color:transparent;width:840.999px;font-size:14px;table-layout:fixed;text-wrap:nowrap;outline:0px !important;">
	<thead style="box-sizing:border-box;outline:0px !important;border:none;">
		<tr style="box-sizing:border-box;outline:0px !important;">
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				参数名
			</th>
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				类型
			</th>
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				必填
			</th>
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				说明
			</th>
		</tr>
	</thead>
	<tbody style="box-sizing:border-box;outline:0px !important;">
		<tr style="box-sizing:border-box;outline:0px !important;transition:all 0.3s ease 0s;">
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				username
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				string
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				是
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				用户名
			</td>
		</tr>
		<tr style="box-sizing:border-box;outline:0px !important;transition:all 0.3s ease 0s;">
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				password
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				string
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				是
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				密码
			</td>
		</tr>
	</tbody>
</table>
</figure>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;font-weight:700;">返回参数</span>：
</p>
<figure class="wp-block-table" style="margin:0px 0px 20px;box-sizing:border-box;overflow-x:auto;border:none;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
<table class="has-fixed-layout" style="border-spacing:0px;background-color:transparent;width:840.999px;font-size:14px;table-layout:fixed;text-wrap:nowrap;outline:0px !important;">
	<thead style="box-sizing:border-box;outline:0px !important;border:none;">
		<tr style="box-sizing:border-box;outline:0px !important;">
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				参数名
			</th>
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				类型
			</th>
			<th style="box-sizing:border-box;outline:0px !important;padding:8px;text-align:center;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;background:var(--muted-border-color);word-break:break-word;">
				说明
			</th>
		</tr>
	</thead>
	<tbody style="box-sizing:border-box;outline:0px !important;">
		<tr style="box-sizing:border-box;outline:0px !important;transition:all 0.3s ease 0s;">
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				code
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				int
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				状态码
			</td>
		</tr>
		<tr style="box-sizing:border-box;outline:0px !important;transition:all 0.3s ease 0s;">
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				message
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				string
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				响应消息
			</td>
		</tr>
		<tr style="box-sizing:border-box;outline:0px !important;transition:all 0.3s ease 0s;">
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				data
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				object
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				返回的数据
			</td>
		</tr>
		<tr style="box-sizing:border-box;outline:0px !important;transition:all 0.3s ease 0s;">
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				token
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				string
			</td>
			<td style="box-sizing:border-box;outline:0px !important;padding:8px;border:1px solid var(--main-border-color);line-height:1.42857;vertical-align:top;word-break:break-word;">
				用户身份Token
			</td>
		</tr>
	</tbody>
</table>
</figure>
<h4 class="wp-block-heading" id="wznav_6" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:16px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;">请求示例</span>：
</h4>
<pre class="wp-block-zibllblock-enlighter" style="box-sizing:border-box;overflow:auto;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;color:#4E5358;word-break:break-all;overflow-wrap:break-word;background:0px 0px #FFFFFF;border:none;border-radius:4px;outline:0px !important;">
<div class="enlighter-default enlighter-v-standard enlighter-t-dracula enlighter-hover enlighter-linenumbers enlighter-overflow-scroll" style="box-sizing:border-box;line-height:1.4;overflow:hidden;text-wrap:wrap;margin:0px 0px 20px;padding:0px;position:relative;direction:ltr;border-radius:8px;background-color:#2D2E31;color:#7E9BF5;outline:0px !important;">
	
	<div class="enlighter-toolbar" style="box-sizing:border-box;outline:0px !important;opacity:0;position:absolute;right:10px;top:8px;z-index:10;transition:all 0.2s ease 0s;">
		
		<div class="enlighter-btn enlighter-btn-raw" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-copy" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-window" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

	</div>

	<div class="enlighter" style="box-sizing:border-box;width:840.999px;border-collapse:collapse;border-spacing:0px;padding:12px 0px;empty-cells:show;min-width:100%;font-size:10px;margin:0px;counter-reset:enlighter 0;max-height:400px;overflow-x:auto;outline:0px !important;overflow-y:auto !important;overflow-wrap:normal !important;">
		
		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">{</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"username"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">: </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"user123"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">,</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"password"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">: </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"password123"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">}</span>
			</div>

		</div>

	</div>

</div>
</pre>
<h4 class="wp-block-heading" id="wznav_7" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:16px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	<span style="box-sizing:border-box;outline:0px !important;">返回示例</span>：
</h4>
<pre class="wp-block-zibllblock-enlighter" style="box-sizing:border-box;overflow:auto;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;color:#4E5358;word-break:break-all;overflow-wrap:break-word;background:0px 0px #FFFFFF;border:none;border-radius:4px;outline:0px !important;">
<div class="enlighter-default enlighter-v-standard enlighter-t-dracula enlighter-hover enlighter-linenumbers enlighter-overflow-scroll" style="box-sizing:border-box;line-height:1.4;overflow:hidden;text-wrap:wrap;margin:0px 0px 20px;padding:0px;position:relative;direction:ltr;border-radius:8px;background-color:#2D2E31;color:#7E9BF5;outline:0px !important;">
	
	<div class="enlighter-toolbar" style="box-sizing:border-box;outline:0px !important;opacity:0;position:absolute;right:10px;top:8px;z-index:10;transition:all 0.2s ease 0s;">
		
		<div class="enlighter-btn enlighter-btn-raw" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-copy" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

		<div class="enlighter-btn enlighter-btn-window" style="box-sizing:border-box;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-optical-sizing:auto;font-feature-settings:normal;font-variation-settings:normal;font-stretch:normal;font-size:14px;line-height:1;font-family:FontAwesome;border-radius:4px;display:inline-block;transition:all 0.15s ease 0s;padding:0.3em 0.6em;background:rgba(57, 60, 66, 0.87);color:#666666;margin-left:6px;cursor:pointer;outline:0px !important;">
			
		</div>

	</div>

	<div class="enlighter" style="box-sizing:border-box;width:840.999px;border-collapse:collapse;border-spacing:0px;padding:12px 0px;empty-cells:show;min-width:100%;font-size:10px;margin:0px;counter-reset:enlighter 0;max-height:400px;overflow-x:auto;outline:0px !important;overflow-y:auto !important;overflow-wrap:normal !important;">
		
		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">{</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"code"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">: </span><span class="enlighter-n1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#BD93F9;">200</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">,</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"message"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">: </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"登录成功"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">,</span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"data"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">: </span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">{</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"token"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;">: </span><span class="enlighter-s0" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F1FA8C;">"abcdefg123456"</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"> </span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">}</span><span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span>
			</div>

		</div>

		<div class="" style="box-sizing:border-box;outline:0px !important;margin:0px;border:0px solid #FFFFFF;list-style:none;font-size:inherit;line-height:1.4;min-height:14px;color:#6272A4;">
			
			<div style="box-sizing:border-box;display:table-cell;width:795.999px;padding-left:10px;outline:0px !important;text-wrap:nowrap !important;">
				<span class="enlighter-text" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;"></span><span class="enlighter-g1" style="box-sizing:border-box;outline:0px !important;margin:0px;padding:0px;line-height:inherit;font-size:13px;font-family:inherit;color:#F8F8F2;font-weight:700;">}</span>
			</div>

		</div>

	</div>

</div>
</pre>
<h3 class="wp-block-heading" id="wznav_8" style="box-sizing:border-box;font-family:moe;line-height:1.1;color:#4E5358;margin:20px 0px;font-size:18px;position:relative;padding-bottom:8px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	最后
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	这些笔记是我在API开发过程中总结出的经验，希望能对其他开发者有所帮助。通过统一的响应格式和规范的接口文档，可以有效提升API的可维护性和一致性。这些内容虽然是个人观点，但我相信在实际开发中也会带来不少便利。如果你有不同的见解或改进建议，欢迎分享！
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;color:#4E5358;font-family:moe;font-size:16px;text-wrap:wrap;background-color:#FFFFFF;outline:0px !important;">
	转自https://www.ahfi.cn/770.html
</p>]]></description>
	<pubDate>Fri, 08 Nov 2024 04:54:42 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/72</guid>

</item>
<item>
	<title>Xrea空间去掉广告的方法</title>
	<link>http://tusimao.free.fr/post/71</link>
	<description><![CDATA[Xrea空间去掉广告的方法
<div>
	1、Xrea空间去掉广告的方法完全可以按照我之前在使用Incapsula时去掉广告的方法，如果你在其它的免费空间也遇到广告的困扰，参考这篇文章即可解决：免费CDN服务Incapsula利用CSS、JS、PHP代码去掉广告方法
</div>
<div>
	2、部落这里用的是PHP判断用户+CSS隐藏广告的方法，原理就是用PHP判断是不是中文用户，如果是，就是用CSS隐藏广告，如果不是，则继续显示广告。这样做的好处就是避免了被免费空间人工审核时发现去广告而删除账号。
</div>
<div>
	3、将以下代码加入你的Xrea空间安装的Wordpress的Footer.php文件当中，就可以用CSS去掉广告了。
</div>
<div>
	&lt;?php $language = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2); if($language == 'zh'){ echo ' '; } ?&gt;
</div>
<div>
	4、去掉Xrea空间的另一种方法是利用.htaccess，这个方法是部落收到热心朋友用QQ留言和邮箱邮件告知我的，非常地感谢。建个文件名” .htaccess”的文件, 文件内容如下，将.htaccess上传至Xrea空间的Public_html目录下,即可去掉广告!
</div>
<p>
	LayoutIgnoreURI .php LayoutIgnoreURI .cgi LayoutIgnoreURI .htm LayoutIgnoreURI .html
</p>
<div>
	四、Xrea空间免费SSH使用方法
</div>
<div>
	1、对于好多人来说，Xrea空间的SSH使用方法或许才是这篇文章的重点，SSH在很多的美国免费空间中都很难见到，更何况是一些日本的免费空间了，像phpapps.jp空间、Phpapps空间、Sitemix.jp空间等都仅开通了FTP，有的甚至连FTP都禁用了。
</div>
<div>
	2、要想使用Xrea空间的SS—H，请先进入“主机信息登记”中。
</div>
<div>
	3、然后点击SS-H登录。
</div>
<div>
	Xrea点击登录
</div>
<div>
	4、这是激活开通Xrea空间的SS功能，大概几分钟后就可以使用了。
</div>
<div>
	5、接下来是打开你的Xshell软件，新建连接，服务器地址填写你的Xrea空间的二级域名地址。
</div>
<div>
	6、连接上了Xrea空间的服务器后，先要保存一下服务器的密钥。
</div>
<div>
	7、Xrea空间SS—H用户名和密码是你的FTP账号和密码。
</div>
<div>
	Xrea账号和密码
</div>
<div>
	8、经过部落测试，Xrea空间运行一些基本的SSH命令是可以的，包括下载、移动、复制等都可以。
</div>]]></description>
	<pubDate>Tue, 22 Oct 2024 13:04:54 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/71</guid>

</item>
<item>
	<title>影视采集站</title>
	<link>http://tusimao.free.fr/post/69</link>
	<description><![CDATA[暴风采集站：https://publish.bfzy.tv/
<div>
	非凡采集站：http://ffzy5.tv/
</div>
<div>
	快看采集站：https://kuaikanzy.net/
</div>
<div>
	乐视采集站：https://www.leshizy1.com/
</div>
<div>
	量子采集站：http://lzizy.net
</div>
<div>
	索尼采集站：https://suonizy.net/
</div>
<div>
	奇虎资源站：https://qihuzy4.com
</div>
<div>
	优质资源库：https://1080zyk6.com
</div>
<div>
	鸭鸭资源库：https://yayazy.com
</div>
<div>
	红牛资源：hongniuziyuan.net
</div>
<div>
	牛牛资源：https://niuniuzy.cc
</div>
<div>
	360资源站：https://360zy5.com
</div>
<div>
	49资源网：https://49zyw.com
</div>
<div>
	OK资源网：https://okzyw.vip
</div>]]></description>
	<pubDate>Mon, 10 Jun 2024 04:57:01 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/69</guid>

</item>
<item>
	<title>网站使用CloudFlare SAAS 优选教程</title>
	<link>http://tusimao.free.fr/post/68</link>
	<description><![CDATA[简单介绍
<div>
	CloudFlare SAAS，简单来说是为了给自助建站类似的网站，而提供的用户自定义域名接入的功能。
</div>
<div>
	比如您做一个系统，可以给用户开通分站等功能，您希望通过api的方式将您的用户自己的域名解析到CloudFlare当中，而不是直接解析到源站。
</div>
<div>
	考虑到本文章是为了让大家使用自选IP,因此在思路上将不会以上述分站的逻辑来解释说明。
</div>
<div>
	<br />
</div>
<div>
	风险说明
</div>
<div>
	在loc有用户反馈，公共cname可能会将搜索引擎蜘蛛线路解析到其他服务器来劫持蜘蛛。
</div>
<div>
	1.如果您的DNS支持，建议将搜索引擎线路，修改为您的网站源站或者其他IP地址。
</div>
<div>
	2.使用宝塔cf2dns插件更新CloudFlare优选IP https://www.baota.me/post-437.html，只会更新移动联通电信三网线路。
</div>
<div>
	<br />
</div>
<div>
	其他说明
</div>
<div>
	由于CloudFlare官方IP是泛播路由，意味着同一个IP在不同地区不同运营商所链接的机房是不同的。
</div>
<div>
	因此公共优选并不适合非网站用途，如果需要建议使用CloudflareSpeedTest项目自行测试本地最优的IP地址。
</div>
<div>
	完整文章一共写了多篇，本帖子删减了一些，如果需要更加完整的教程请访问以下链接获取。
</div>
<div>
	https://www.baota.me/tag/cloudflare.html
</div>
<div>
	创作不易，转载请留链接，感谢支持。
</div>
<div>
	<br />
</div>
<div>
	准备事项
</div>
<div>
	CloudFlare账户：
</div>
<div>
	注册不难就不说了。不过需要贝宝以及海外银行卡认证来开通CloudFlare SAAS（自定义主机名）功能。
</div>
<div>
	<br />
</div>
<div>
	<br />
</div>
<div>
	网站域名：
</div>
<div>
	用于建站并使用自选IP的域名，并且该域名的DNS解析服务器不能使用CloudFlare，因为严格来讲CloudFlare是支持DNS解析的CDN服务，您使用该DNS解析会造成CDN配置冲突。
</div>
<div>
	请注意如果你使用www或者@主机名做站，您应该理解为这是两个网站域名，如www.youname.com、youname.com。
</div>
<div>
	文章示例中会使用web.baota.me，域名在华为云解析。
</div>
<div>
	<br />
</div>
<div>
	回源域名：
</div>
<div>
	该域名NS将被CloudFlare接管，因此无法用于自选IP等用途。
</div>
<div>
	如果您要接入的网站域名较多，请尽可能的选择长久使用的域名，而不是年抛域名。
</div>
<div>
	不然年抛域名到期后需要耗费很多时间用来迁移域名。
</div>
<div>
	可以使用一些免费域名如eu.org，或其他比较低价的域名如.free.hr、6位数字.xyz，需要注意不是所有二级域名都支持ns接入到CloudFlare的。可以在下面文章中查看并获取其他后缀的域名。
</div>
<div>
	https://www.baota.me/post-410.html
</div>
<div>
	本文章将使用在dash.gacjie.cn注册的baota.free.hr域名。
</div>
<div>
	<br />
</div>
<div>
	回源域名NS接入到CloudFlare
</div>
<div>
	如果您的回源域名已经NS添加到CloudFlare，此步可以跳过。
</div>
<div>
	1.将回源域名(baota.free.hr)添加到CloudFlare,应该不难就不一步一步的写了。
</div>
<div>
	2.复制ns服务器信息
</div>
<div>
	<br />
</div>
<div>
	3.1.将CF提供的ns服务器信息更新到域名那边
</div>
<div>
	<br />
</div>
<div>
	3.2.如果你没有域名也可以直接注册
</div>
<div>
	<br />
</div>
<div>
	<br />
</div>
<div>
	网站域名的顶级域名解析到非CF的DNS域名解析系统
</div>
<div>
	这里就不详细说明了，更换ns服务器跟回源域名NS接入到CloudFlare差不多。
</div>
<div>
	<br />
</div>
<div>
	回源域名创建回退源地址
</div>
<div>
	<br />
</div>
<div>
	1.source可以是@也可以是任意的子域名前缀，但我比较建议使用子域名创建。
</div>
<div>
	2.111.111.111.111是你的网站源服务器，您可以改为您的源站IP地址。
</div>
<div>
	3.代理状态(小云朵),请务必开启，如果关闭您后续添加在自定义主机名里面的网站域名将全部回源。
</div>
<div>
	<br />
</div>
<div>
	自定义主机名添加回退源地址
</div>
<div>
	<br />
</div>
<div>
	source.baota.free.hr是上一步创建的回退源地址，请改为您创建的域名。
</div>
<div>
	<br />
</div>
<div>
	自定义主机名添加网站域名
</div>
<div>
	1.确保回退源已经生效，然后点击右上角的添加自定义主机名。
</div>
<div>
	<br />
</div>
<div>
	2.填写您的网站域名，这里的web.baota.me是示例域名，您可能要添加www.youname.com、youname.com或者其他的二级域名。
</div>
<div>
	<br />
</div>
<div>
	3.复制自定义主机名的 DCV 委派提供的信息用来下一步的域名验证。
</div>
<div>
	<br />
</div>
<div>
	4.到您的网站域名NS解析服务商，添加DCV 委派验证记录。
</div>
<div>
	<br />
</div>
<div>
	<br />
</div>
<div>
	演示截图配置的网站为web.baota.me。
</div>
<div>
	主机名为_acme-challenge.web值为web.baota.me.9cf4d41f99889e0c.dcv.cloudflare.com
</div>
<div>
	如果配置的网站为baota.me。
</div>
<div>
	主机名为_acme-challenge值为baota.me.9cf4d41f99889e0c.dcv.cloudflare.com
</div>
<div>
	如果配置的网站为www.baota.me。
</div>
<div>
	主机名为_acme-challenge.www值为www.baota.me.9cf4d41f99889e0c.dcv.cloudflare.com
</div>
<div>
	以上只是范例，实际操作时请改为您自己的DCV 委派验证记录。
</div>
<div>
	<br />
</div>
<div>
	5.添加网站域名的解析记录指向回退源
</div>
<div>
	<br />
</div>
<div>
	6.使用ITDOG访问一次网站域名
</div>
<div>
	<br />
</div>
<div>
	主机名一共有两种验证方式
</div>
<div>
	预验证：即txt或者http验证方式，但需要等待一段时间的Cloudflare官方扫描。
</div>
<div>
	实时验证：即将主机名正确的cname到回退源地址。
</div>
<div>
	本教程使用实时验证方式。考虑到dns解析缓存，为了加快验证，因此用测速工具来完成正常解析请求。
</div>
<div>
	7.正常情况下，刷新一下CloudFlare自定义主机名页面，应该已经完成验证了，如果没有可能要等待一段时间，或者需要检查上述配置是否出错。
</div>
<div>
	<br />
</div>
<div>
	8.补一张图用于解析配置检查
</div>
<div>
	<br />
</div>
<div>
	<br />
</div>
<div>
	挑选优选域名
</div>
<div>
	由于CNAME地址会有被污染、域名所有者不维护等情况，为了方便更新，该列表会单独一个页面展示。
</div>
<div>
	本文章将使用cloudflare.182682.xyz域名来做示例优选域名。
</div>
<div>
	1.CloudFlare公共优选Cname域名列表
</div>
<div>
	https://www.baota.me/post-411.html
</div>
<div>
	经过一段时间的观察，目前比较推荐使用以下优选域名。
</div>
<div>
	yx.887141.xyz
</div>
<div>
	2.炸了吗HTTP网站测速工具
</div>
<div>
	https://zhale.me/http/
</div>
<div>
	3.测试挑选适合您网站的优选域名
</div>
<div>
	<br />
</div>
<div>
	<br />
</div>
<div>
	4.建议说明
</div>
<div>
	1.挑选时不要只看小地图，应该根据平均访问速度，最大访问速度，失败节点数等综合判断。
</div>
<div>
	2.因为有些非官方的优选IP不支持80或者443端口。
</div>
<div>
	因此测试时建议对http、https链接单独测试。
</div>
<div>
	3.如果您的网站并发过低建议使用慢速监测。
</div>
<div>
	快速测试：模拟用户同时访问指定网站
</div>
<div>
	慢速监测：模拟用户依次访问指定网站
</div>
<div>
	<br />
</div>
<div>
	解析优选域名
</div>
<div>
	通过SAAS验证后，可直接替换回退源为优选域名，但出于风险考虑我比较建议分线路解析。
</div>
<div>
	1.国外线路解析到回退源域名是为了避免CF增加监测系统，自动删除已添加的网站域名。
</div>
<div>
	2.优选域名一般都会只优选国内线路，因此国外线路大概率没有进行优选。
</div>
<div>
	3.默认回退源域名一般情况下，国外访问最近策略，会比自定义IP效果要好。
</div>
<div>
	【可选】将优选域名解析到国内线路上
</div>
<div>
	<br />
</div>
<div>
	补充截图用于校验设置
</div>
<div>
	<br />
</div>
<div>
	【可选】将搜索引擎线路设置为源站或者其他IP
</div>
<div>
	在loc有用户反馈，公共cname可能会将搜索引擎蜘蛛线路解析到其他服务器来劫持蜘蛛。
</div>
<div>
	因此我们可以自定义搜索引擎线路来避免这种情况的发生，需要说明不是所有DNS支持这样设置。
</div>
<div>
	<br />
</div>
<div>
	其他教程
</div>
<div>
	使用宝塔cf2dns插件更新CloudFlare优选IP https://www.baota.me/post-437.html
</div>
<div>
	CloudFlare CDN核心功能 资源缓存 https://www.baota.me/post-429.html
</div>
<p>
	更多CloudFlare 系列教程 https://www.baota.me/tag/cloudflare.html
</p>
<p>
	<br />
</p>
<p>
	转自：https://hostloc.com/thread-1279428-1-1.html
</p>]]></description>
	<pubDate>Sat, 08 Jun 2024 03:30:23 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/68</guid>

</item>
<item>
	<title>免费域名eu.org简单过户(push)图文教程</title>
	<link>http://tusimao.free.fr/post/67</link>
	<description><![CDATA[EU 域名简介
<div>
EU.org 是欧盟组织下面的域名，EU 代表欧盟，于 Paul Mockapetris 在 1996 年 9 月/10 日创建的域名，目前个人和组织都是可以免费注册的。
</div>
<div>
<img src="https://www.yunloc.com/wp-content/uploads/2023/06/539f7fc107201530.png" alt="" /><br />
</div>
<div>
这里就不介绍怎么注册eu.org了，这里主要说一下怎么转移（push）域名到另一个账号下。
</div>
<div>
<br />
</div>
<div>
转移方法
</div>
<div>
首先进入域名管理中心 https://nic.eu.org，登录 A 账号并点击要过户的域名如 xxx.eu.org；
</div>
<div>
<img src="https://www.yunloc.com/wp-content/uploads/2023/06/4a47a0db6e202116.png" alt="" /><br />
</div>
<div>
点击 Contacts 最下方列表里的 administrative，并输入 B 账号全称如 LL100-FREE，点击添加【add】，添加 B 账号新的管理员;
</div>
<div>
<img src="https://www.yunloc.com/wp-content/uploads/2023/06/fb5c81ed3a203002.png" alt="" /><br />
</div>
<div>
再次点击 Contacts 最下方列表里的 technical，并输入 B 账号全称如 LL100-FREE，点击添加【add】，添加 B 账号技术员;
</div>
<div>
<img src="https://www.yunloc.com/wp-content/uploads/2023/06/10fb15c772203351.png" alt="" /><br />
</div>
<div>
然后依次删除【Remove】A 账号上的 administrative 和 technical 权限，将会收到以下警告：
</div>
<div>
<br />
</div>
<div>
WARNING: by removing yourself (LL100-FREE) from contacts for xxx.eu.org, you may lose some or all of your privileges on this domain.核对无误后点击 Confirm Remove 确认删除【此处不可逆，务必谨慎操作】
</div>
<div>
<br />
</div>
<div>
再回到 A 账号首页刷新发现 xxx.eu.org 已经不在域名列表，操作成功。
</div>
<div>
<br />
</div>
<div>
结语
</div>
<p>
转移后去官网网址确认查询：https://nic.eu.org/arf/en/contact/bydom 输入 xxx.eu.org 点击 Find contacts for this domain 查询域名是否已经 push 到新的 B 账号了。
</p>
<p>
<br />
</p>
<p>
转自：https://www.yunloc.com/2889.html
</p>]]></description>
	<pubDate>Wed, 05 Jun 2024 15:14:57 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/67</guid>

</item>
<item>
	<title>通过Cloudflare Worker实现Free.fr免费空间自定义域</title>
	<link>http://tusimao.free.fr/post/66</link>
	<description><![CDATA[<pre class="prettyprint lang-html linenums"><span style="box-sizing:border-box;border:0px solid #E5E7EB;--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x:;--tw-pan-y:;--tw-pinch-zoom:;--tw-scroll-snap-strictness:proximity;--tw-ordinal:;--tw-slashed-zero:;--tw-numeric-figure:;--tw-numeric-spacing:;--tw-numeric-fraction:;--tw-ring-inset:;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur:;--tw-brightness:;--tw-contrast:;--tw-grayscale:;--tw-hue-rotate:;--tw-invert:;--tw-saturate:;--tw-sepia:;--tw-drop-shadow:;--tw-backdrop-blur:;--tw-backdrop-brightness:;--tw-backdrop-contrast:;--tw-backdrop-grayscale:;--tw-backdrop-hue-rotate:;--tw-backdrop-invert:;--tw-backdrop-opacity:;--tw-backdrop-saturate:;--tw-backdrop-sepia:;font-family:&quot;font-size:medium;white-space:pre;user-select:all;">// Website you intended to retrieve for users.
//const upstream = 'www.google.com'
const upstream = 'yourid.free.fr'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
//const upstream_mobile = 'www.google.com'
const upstream_mobile = 'yourid.free.fr'
// Countries and regions where you wish to suspend your service.
const blocked_region = []
// IP addresses which you wish to block from using your service.
const blocked_ip_address = ['0.0.0.0', '127.0.0.1']
// Whether to use HTTPS protocol for upstream address.
const https = false
// Whether to disable cache.
const disable_cache = false
// Replace texts.
// const replace_dict = {
//     '$upstream': '$custom_domain',
//     '//google.com': ''
// }
const replace_dict = {
    '$upstream': '$custom_domain',
}
let data={}
addEventListener('fetch', event =&gt; {
    event.respondWith(fetchAndApply(event.request));
})
async function fetchAndApply(request) {
    const region = request.headers.get('cf-ipcountry').toUpperCase();
    const ip_address = request.headers.get('cf-connecting-ip');
    const user_agent = request.headers.get('user-agent');
    let response = null;
    let url = new URL(request.url);
    let url_hostname = url.hostname;
    if (https == true) {
        url.protocol = 'https:';
    } else {
        url.protocol = 'http:';
    }
    if (await device_status(user_agent)) {
        var upstream_domain = upstream;
    } else {
        var upstream_domain = upstream_mobile;
    }
    url.host = upstream_domain;
    if (url.pathname == '/') {
        url.pathname = upstream_path;
    } else {
        url.pathname = upstream_path + url.pathname;
    }
    if (blocked_region.includes(region)) {
        response = new Response('Access denied: WorkersProxy is not available in your region yet.', {
            status: 403
        });
    } else if (blocked_ip_address.includes(ip_address)) {
        response = new Response('Access denied: Your IP address is blocked by WorkersProxy.', {
            status: 403
        });
    } else {
        let method = request.method;
        let request_headers = request.headers;
        let new_request_headers = new Headers(request_headers);
        new_request_headers.set('Host', upstream_domain);
        new_request_headers.set('Referer', url.protocol + '//' + upstream_domain);
        if(method == 'POST'){
            let origin_formData = await request.text()
            data = {
                method: method,
                headers: new_request_headers,
                body : origin_formData
            }
            console.log(data)
        }else if(method == 'GET'){
            data = {
                method: method,
                headers: new_request_headers
            }
        }
        let fuckKeys =  Object.fromEntries(new_request_headers)
        console.log(method)
        console.log(fuckKeys)
        let original_response = await fetch(url.href, data)
        connection_upgrade = new_request_headers.get("Upgrade");
        if (connection_upgrade &amp;&amp; connection_upgrade.toLowerCase() == "websocket") {
            return original_response;
        }
        let original_response_clone = original_response.clone();
        let original_text = null;
        let response_headers = original_response.headers;
        let new_response_headers = new Headers(response_headers);
        let status = original_response.status;
		if (disable_cache) {
			new_response_headers.set('Cache-Control', 'no-store');
	    }
        new_response_headers.set('access-control-allow-origin', '*');
        new_response_headers.set('access-control-allow-credentials', true);
        new_response_headers.delete('content-security-policy');
        new_response_headers.delete('content-security-policy-report-only');
        new_response_headers.delete('clear-site-data');
		if (new_response_headers.get("x-pjax-url")) {
            new_response_headers.set("x-pjax-url", response_headers.get("x-pjax-url").replace("//" + upstream_domain, "//" + url_hostname));
        }
        const content_type = new_response_headers.get('content-type');
        if (content_type != null &amp;&amp; content_type.includes('text/html') &amp;&amp; content_type.includes('UTF-8')) {
            original_text = await replace_response_text(original_response_clone, upstream_domain, url_hostname);
        } else {
            original_text = original_response_clone.body
        }
        response = new Response(original_text, {
            status,
            headers: new_response_headers
        })
    }
    return response;
}
async function replace_form_data(formData, upstream_domain, host_name) {
    let text = await response.text()
    var i, j;
    for (i in replace_dict) {
        j = replace_dict[i]
        if (i == '$upstream') {
            i = upstream_domain
        } else if (i == '$custom_domain') {
            i = host_name
        }
        if (j == '$upstream') {
            j = upstream_domain
        } else if (j == '$custom_domain') {
            j = host_name
        }
        let re = new RegExp(i, 'g')
        text = text.replace(re, j);
    }
    return text;
}
async function replace_response_text(response, upstream_domain, host_name) {
    let text = await response.text()
    var i, j;
    for (i in replace_dict) {
        j = replace_dict[i]
        if (i == '$upstream') {
            i = upstream_domain
        } else if (i == '$custom_domain') {
            i = host_name
        }
        if (j == '$upstream') {
            j = upstream_domain
        } else if (j == '$custom_domain') {
            j = host_name
        }
        let re = new RegExp(i, 'g')
        text = text.replace(re, j);
    }
    return text;
}
async function device_status(user_agent_info) {
    var agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
    var flag = true;
    for (var v = 0; v &lt; agents.length; v++) {
        if (user_agent_info.indexOf(agents[v]) &gt; 0) {
            flag = false;
            break;
        }
    }
    return flag;
}</span> </pre>]]></description>
	<pubDate>Sat, 11 May 2024 23:32:18 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/66</guid>

</item>
<item>
	<title>360壁纸API接口</title>
	<link>http://tusimao.free.fr/post/65</link>
	<description><![CDATA[<h2 id="1" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0.3em;margin:24px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;line-height:1.25;border-bottom:1px solid var(--color-border-muted);color:#333333;white-space:normal;background-color:#FFFFFF;">
	获取壁纸类别
</h2>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url：<a href="http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAllCategories" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;">http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAllCategories</a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url 示例：<a href="http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAllCategories" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;"><code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:11.9px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAllCategories</code></a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	json 示例：
</p>
<pre style="background-repeat:no-repeat;box-sizing:border-box;padding:16px;margin-top:0px;margin-bottom:16px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:1.45;font-family:ui-monospace, SFMono-Regular, &quot;overflow:auto;border-radius:6px;overflow-wrap:normal;color:#333333;"><code style="background:rgba(0, 0, 0, 0.05);box-sizing:border-box;padding:0px;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;border-radius:6px;color:currentcolor;word-break:normal;border:0px;display:inline;max-width:initial;overflow:visible;line-height:inherit;overflow-wrap:normal;">{
"errno": "0",
"errmsg": "正常",
"consume": "10",
"total": "16",
"data": [
    {
        "id": "36",
        "name": "4K专区",
        "totalcnt": "2704",
        "create_time": "2015-12-08 13:50:44",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "6",
        "name": "美女模特",
        "totalcnt": "3905",
        "create_time": "2011-10-29 17:49:27",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "30",
        "name": "爱情美图",
        "totalcnt": "2305",
        "create_time": "2012-11-23 10:49:25",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "9",
        "name": "风景大片",
        "totalcnt": "8185",
        "create_time": "2011-11-02 16:33:34",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "15",
        "name": "小清新",
        "totalcnt": "6922",
        "create_time": "2011-12-15 18:47:03",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "26",
        "name": "动漫卡通",
        "totalcnt": "6818",
        "create_time": "2012-07-27 17:17:42",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "11",
        "name": "明星风尚",
        "totalcnt": "4316",
        "create_time": "2011-11-02 17:38:58",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "14",
        "name": "萌宠动物",
        "totalcnt": "2722",
        "create_time": "2011-12-15 18:23:27",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "5",
        "name": "游戏壁纸",
        "totalcnt": "2041",
        "create_time": "2011-10-29 17:49:12",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "12",
        "name": "汽车天下",
        "totalcnt": "1757",
        "create_time": "2011-12-13 18:59:40",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "10",
        "name": "炫酷时尚",
        "totalcnt": "4828",
        "create_time": "2011-11-02 17:10:53",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "22",
        "name": "军事天地",
        "totalcnt": "665",
        "create_time": "2012-05-29 15:10:04",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "16",
        "name": "劲爆体育",
        "totalcnt": "1174",
        "create_time": "2011-12-30 11:37:49",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "32",
        "name": "纹理",
        "totalcnt": "333",
        "create_time": "2013-03-18 13:58:21",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "35",
        "name": "文字控",
        "totalcnt": "926",
        "create_time": "2014-09-25 18:35:57",
        "displaytype": "",
        "tempdata": ""
    },
    {
        "id": "1",
        "name": "限时壁纸",
        "totalcnt": "204",
        "create_time": "2014-09-25 18:20:40",
        "displaytype": "",
        "tempdata": ""
    }
] </code></pre>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	}
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	解析：
</p>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">total</code>：返回数据数量
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">data</code>：返回的数据
		<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px;">
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">name</code>：类别名
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">id</code>：
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">totalcnt</code>：该类别壁纸数量
			</li>
		</ul>
	</li>
</ul>
<h2 id="9" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0.3em;margin:24px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;line-height:1.25;border-bottom:1px solid var(--color-border-muted);color:#333333;white-space:normal;background-color:#FFFFFF;">
	获取某类别下的壁纸
</h2>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url：<a href="http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAppsByCategory" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;">http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAppsByCategory</a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	其他拼接参数：
</p>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">cid</code>：类别id,类别已知：
	</li>
</ul>
<pre style="background-repeat:no-repeat;box-sizing:border-box;padding:16px;margin-top:0px;margin-bottom:16px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:1.45;font-family:ui-monospace, SFMono-Regular, &quot;overflow:auto;border-radius:6px;overflow-wrap:normal;color:#333333;"><code class="language-" style="background:rgba(0, 0, 0, 0.05);box-sizing:border-box;padding:0px;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;border-radius:6px;color:currentcolor;word-break:normal;border:0px;display:inline;max-width:initial;overflow:visible;line-height:inherit;overflow-wrap:normal;">1：每日精选
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	5：游戏
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	6：美女
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	9：风景
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	10：视觉创意
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	11：明星影视
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	12：汽车
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	14：萌宠动物
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	15：小清新
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	16：体育
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	22：军事
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	26：动漫卡通
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	30：情感
</p>

<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	35：文字
</p>
</code>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-size:0.875em;font-family:-apple-system, BlinkMacSystemFont, &quot;">
	<code class="language-" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;display:inline;max-width:initial;overflow:visible;line-height:inherit;overflow-wrap:normal;border:0px;"></code>
</p>
</pre>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">start</code>：跳过的记录数
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">count</code>：返回的数量
	</li>
</ul>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url 示例：<a href="http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAppsByCategory&amp;cid=9&amp;start=0&amp;count=99" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;"><code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:11.9px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">http://wallpaper.apc.360.cn/index.php?c=WallPaperAndroid&amp;a=getAppsByCategory&amp;cid=9&amp;start=0&amp;count=99</code></a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	json 示例：
</p>
<pre style="background-repeat:no-repeat;box-sizing:border-box;padding:16px;margin-top:0px;margin-bottom:16px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:1.45;font-family:ui-monospace, SFMono-Regular, &quot;overflow:auto;border-radius:6px;overflow-wrap:normal;color:#333333;"><code style="background:rgba(0, 0, 0, 0.05);box-sizing:border-box;padding:0px;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;border-radius:6px;color:currentcolor;word-break:normal;border:0px;display:inline;max-width:initial;overflow:visible;line-height:inherit;overflow-wrap:normal;">{
"errno": "0",
"errmsg": "正常",
"consume": "6",
"total": "8185",
"data": [
    {
        "pid": "319229",
        "cid": "9",
        "dl_cnt": "0",
        "c_t": "2018-05-02 10:10:54",
        "imgcut": "0",
        "url": "http://p16.qhimg.com/t01d7effbff8a01b127.jpg",
        "tempdata": "",
        "fav_total": "9319"
    },
    {
        "pid": "319146",
        "cid": "9",
        "dl_cnt": "0",
        "c_t": "2018-04-27 10:06:11",
        "imgcut": "0",
        "url": "http://p17.qhimg.com/t018bb2253d2df00838.jpg",
        "tempdata": "",
        "fav_total": "6425"
    },
    {
        "pid": "319145",
        "cid": "9",
        "dl_cnt": "0",
        "c_t": "2018-04-27 10:05:44",
        "imgcut": "0",
        "url": "http://p19.qhimg.com/t018d05d2327c2f4bec.jpg",
        "tempdata": "",
        "fav_total": "7093"
    },
    {
        "pid": "319144",
        "cid": "9",
        "dl_cnt": "0",
        "c_t": "2018-04-27 10:05:01",
        "imgcut": "0",
        "url": "http://p19.qhimg.com/t012864214a3c106fbc.jpg",
        "tempdata": "",
        "fav_total": "5866"
    },
    {
        "pid": "319143",
        "cid": "9",
        "dl_cnt": "0",
        "c_t": "2018-04-27 10:04:37",
        "imgcut": "0",
        "url": "http://p17.qhimg.com/t01d7f7956cc1be4821.jpg",
        "tempdata": "",
        "fav_total": "5997"
    }
] </code></pre>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	}
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	解析：
</p>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">total</code>：返回数据数量
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">data</code>：返回的数据
		<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px;">
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">pid</code>：
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">cid</code>：类别ID
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">url</code>：壁纸地址
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">fav_total</code>：收藏数
			</li>
		</ul>
	</li>
</ul>
<h2 id="22" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0.3em;margin:24px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;line-height:1.25;border-bottom:1px solid var(--color-border-muted);color:#333333;white-space:normal;background-color:#FFFFFF;">
	按关键字搜索壁纸
</h2>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url：<a href="http://wallpaper.apc.360.cn/index.php?c=WallPaper&amp;a=search" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;">http://wallpaper.apc.360.cn/index.php?c=WallPaper&amp;a=search</a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	其他拼接参数：
</p>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">kw</code>：关键字
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">start</code>：跳过的记录数
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">count</code>：返回的数量
	</li>
</ul>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url 示例：<a href="http://wallpaper.apc.360.cn/index.php?c=WallPaper&amp;a=search&amp;start=0&amp;count=99&amp;kw=%E6%AF%95%E4%B8%9A&amp;start=0&amp;count=99" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;"><code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:11.9px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">http://wallpaper.apc.360.cn/index.php?c=WallPaper&amp;a=search&amp;start=0&amp;count=99&amp;kw=%E6%AF%95%E4%B8%9A&amp;start=0&amp;count=99</code></a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	json 示例：
</p>
<pre style="background-repeat:no-repeat;box-sizing:border-box;padding:16px;margin-top:0px;margin-bottom:16px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:1.45;font-family:ui-monospace, SFMono-Regular, &quot;overflow:auto;border-radius:6px;overflow-wrap:normal;color:#333333;"><code style="background:rgba(0, 0, 0, 0.05);box-sizing:border-box;padding:0px;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;border-radius:6px;color:currentcolor;word-break:normal;border:0px;display:inline;max-width:initial;overflow:visible;line-height:inherit;overflow-wrap:normal;">{
"errno": "0",
"errmsg": "success",
"consume": "0",
"total": "97",
"data": [
    {
        "id": "305990",
        "class_id": "35",
        "resolution": "1920x1200",
        "url_mobile": "http://p18.qhimg.com/t017489cbb76a02bf66.jpg",
        "url": "http://p18.qhimg.com/bdr/__85/t017489cbb76a02bf66.jpg",
        "url_thumb": "http://p18.qhimg.com/t017489cbb76a02bf66.jpg",
        "url_mid": "http://p18.qhimg.com/t017489cbb76a02bf66.jpg",
        "download_times": "0",
        "imgcut": "0",
        "tag": "_全部_ _category_文字_  _category_毕业季_ _category_伤感_ _category_文字控_",
        "create_time": "2017-06-16 13:30:06",
        "update_time": "2017-06-16 13:33:07",
        "utag": "文字 毕业季 伤感",
        "tempdata": "",
        "rdata": [],
        "img_1600_900": "http://p18.qhimg.com/bdm/1600_900_85/t017489cbb76a02bf66.jpg",
        "img_1440_900": "http://p18.qhimg.com/bdm/1440_900_85/t017489cbb76a02bf66.jpg",
        "img_1366_768": "http://p18.qhimg.com/bdm/1366_768_85/t017489cbb76a02bf66.jpg",
        "img_1280_800": "http://p18.qhimg.com/bdm/1280_800_85/t017489cbb76a02bf66.jpg",
        "img_1280_1024": "http://p18.qhimg.com/bdm/1280_1024_85/t017489cbb76a02bf66.jpg",
        "img_1024_768": "http://p18.qhimg.com/bdm/1024_768_85/t017489cbb76a02bf66.jpg"
    },
    {
        "id": "306106",
        "class_id": "35",
        "resolution": "1920x1200",
        "url_mobile": "http://p16.qhimg.com/t01b31a7859ecc52066.jpg",
        "url": "http://p16.qhimg.com/bdr/__85/t01b31a7859ecc52066.jpg",
        "url_thumb": "http://p16.qhimg.com/t01b31a7859ecc52066.jpg",
        "url_mid": "http://p16.qhimg.com/t01b31a7859ecc52066.jpg",
        "download_times": "0",
        "imgcut": "0",
        "tag": "_全部_ _category_文字_  _category_毕业季_ _category_伤感_ _category_文字控_",
        "create_time": "2017-06-20 13:12:50",
        "update_time": "2017-06-20 13:12:50",
        "utag": "文字 毕业季 伤感",
        "tempdata": "",
        "rdata": [],
        "img_1600_900": "http://p16.qhimg.com/bdm/1600_900_85/t01b31a7859ecc52066.jpg",
        "img_1440_900": "http://p16.qhimg.com/bdm/1440_900_85/t01b31a7859ecc52066.jpg",
        "img_1366_768": "http://p16.qhimg.com/bdm/1366_768_85/t01b31a7859ecc52066.jpg",
        "img_1280_800": "http://p16.qhimg.com/bdm/1280_800_85/t01b31a7859ecc52066.jpg",
        "img_1280_1024": "http://p16.qhimg.com/bdm/1280_1024_85/t01b31a7859ecc52066.jpg",
        "img_1024_768": "http://p16.qhimg.com/bdm/1024_768_85/t01b31a7859ecc52066.jpg"
    }
] </code></pre>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	}
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	解析：
</p>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">total</code>：返回数据数量
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">data</code>：返回的数据
		<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin:0px;">
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">id</code>：壁纸id
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">tag</code>：所属的壁纸类别名称
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">utag</code>：壁纸tags
			</li>
			<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
				<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">fav_total</code>：收藏数
			</li>
		</ul>
	</li>
</ul>
<h2 id="32" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0.3em;margin:24px 0px 16px;font-family:-apple-system, BlinkMacSystemFont, &quot;line-height:1.25;border-bottom:1px solid var(--color-border-muted);color:#333333;white-space:normal;background-color:#FFFFFF;">
	获取今日热门搜索
</h2>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	url：<a href="http://openbox.mobilem.360.cn/html/api/wallpaperhot.html" target="_blank" style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;text-decoration-line:none;background-color:transparent;color:#4C4948;cursor:pointer;">http://openbox.mobilem.360.cn/html/api/wallpaperhot.html</a>
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	json 示例：
</p>
<pre style="background-repeat:no-repeat;box-sizing:border-box;padding:16px;margin-top:0px;margin-bottom:16px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13.6px;line-height:1.45;font-family:ui-monospace, SFMono-Regular, &quot;overflow:auto;border-radius:6px;overflow-wrap:normal;color:#333333;"><code style="background:rgba(0, 0, 0, 0.05);box-sizing:border-box;padding:0px;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;border-radius:6px;color:currentcolor;word-break:normal;border:0px;display:inline;max-width:initial;overflow:visible;line-height:inherit;overflow-wrap:normal;">{
"error": 0,
"end_state": 1,
"total": 11,
"data": [
    "爱情箴言",
    "一个人",
    "范冰冰",
    "温馨",
    "阿狸",
    "恶搞",
    "lomo",
    "清纯",
    "瓶邪",
    "正能量",
    "毕业季",
    "葫芦娃",
    "手写",
    "世界杯",
    "TFBOYS",
    "我是歌手",
    "李易峰",
    "早安"
] </code></pre>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	}
</p>
<p style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin-top:0px;margin-bottom:16px;font-family:-apple-system, BlinkMacSystemFont, &quot;font-size:0.875em;color:#333333;white-space:normal;background-color:#FFFFFF;">
	解析：
</p>
<ul style="background-repeat:no-repeat;box-sizing:border-box;padding:0px 0px 0px 2em;margin-top:0px;margin-right:0px;margin-left:0px;font-family:-apple-system, BlinkMacSystemFont, &quot;color:#333333;font-size:16px;white-space:normal;background-color:#FFFFFF;margin-bottom:0px !important;">
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">total</code>：返回数据数量
	</li>
	<li style="background-repeat:no-repeat;box-sizing:border-box;padding:0px;margin:0.25em 0px 0px;">
		<code style="background-repeat:no-repeat;box-sizing:border-box;padding:0.2em 0.4em;margin:0px;font-family:ui-monospace, SFMono-Regular, &quot;font-size:13.6px;background-color:rgba(0, 0, 0, 0.05);border-radius:6px;color:currentcolor;">data</code>：返回的数据
	</li>
</ul>]]></description>
	<pubDate>Sun, 19 Nov 2023 05:17:21 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/65</guid>

</item>
<item>
	<title>随机图片API搭建总结教程</title>
	<link>http://tusimao.free.fr/post/64</link>
	<description><![CDATA[<h1 id="随机图片API搭建教程" style="box-sizing:border-box;margin:30px 0px 10px;font-size:30px;font-family:&quot;line-height:1.4;color:#FFFFFF;background-image:linear-gradient(transparent 60%, rgba(189, 202, 219, 0.3) 0px);background-position:initial;background-size:initial;background-repeat:no-repeat;background-attachment:initial;background-origin:initial;background-clip:initial;width:auto;display:inline;white-space:normal;">
	<h2 style="color:var(--main);white-space:normal;font-family:&quot;margin:0px 0px 18px;padding:0px 15px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;text-shadow:var(--text-bt);font-weight:500;font-size:18px;line-height:24px;position:relative;background-color:rgba(255, 255, 255, 0.8);">
		第一种方法（以图片源文件进行随机）
	</h2>
	<p style="font-size:medium;white-space:normal;font-family:&quot;margin-top:0px;margin-bottom:18px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;line-height:26px;color:#606266;background-color:rgba(255, 255, 255, 0.8);">
		第一步：新建一个文件夹，命名为：img（这个文件里放你需要的图片）<br style="font-family:&quot;margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;" />
第二步：新建一个index.php文件，写入以下代码 （这个文件就是api地址）
	</p>
<pre class="  language-abap" tabindex="0" style="font-family:&quot;margin-top:0px;margin-bottom:18px;padding:30px 0px 0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#606266;background-image:;background-position-x:;background-position-y:;background-size:;background-repeat-x:;background-repeat-y:;background-attachment:;background-origin:;background-clip:;font-size:14px;word-break:normal;overflow-wrap:normal;line-height:1.5;tab-size:4;hyphens:none;overflow:hidden;position:relative;border-radius:5px;letter-spacing:0.05em;"><code class="  language-abap" style="font-family:&quot;margin:0px;padding:5px 15px 15px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:var(--routine);background-image:initial;background-position:0px 0px;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;font-size:1em;word-spacing:normal;word-break:normal;overflow-wrap:normal;line-height:1.5;tab-size:4;hyphens:none;display:block;overflow:auto;">&lt;?php
$img_array <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> glob<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>"img/*<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">.</span><span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">{</span>webp<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">,</span>gif<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">,</span>jpg<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">,</span>png<span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">}</span>"<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">,</span>GLOB_BRACE<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; 
$img <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> array_rand<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$img_array<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; 
$dz <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> $img_array[$img]; <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">header</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>"Location<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">:</span>"<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">.</span>$dz<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>;
?&gt;</code><span class="copy" title="复制" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;position:absolute;top:10px;right:15px;z-index:5;cursor:pointer;"><svg class="icon2" aria-hidden="true"><use xlink:href="#icon-fuzhi"></use></svg></span></pre>
	<h2 style="color:var(--main);white-space:normal;font-family:&quot;margin:0px 0px 18px;padding:0px 15px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;text-shadow:var(--text-bt);font-weight:500;font-size:18px;line-height:24px;position:relative;background-color:rgba(255, 255, 255, 0.8);">
		第二种方法（以图片链接进行随机）
	</h2>
	<p style="font-size:medium;white-space:normal;font-family:&quot;margin-top:0px;margin-bottom:18px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;line-height:26px;color:#606266;background-color:rgba(255, 255, 255, 0.8);">
		第一步：创建一个img.txt文件 （这个文件里放你的储存的图片链接，一行一条）<br style="font-family:&quot;margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;" />
第二步：新建一个index.php文件，写入以下代码 （这个文件就是api地址）
	</p>
<pre class="  language-abap" tabindex="0" style="font-family:&quot;margin-top:0px;margin-bottom:18px;padding:30px 0px 0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#606266;background-image:;background-position-x:;background-position-y:;background-size:;background-repeat-x:;background-repeat-y:;background-attachment:;background-origin:;background-clip:;font-size:14px;word-break:normal;overflow-wrap:normal;line-height:1.5;tab-size:4;hyphens:none;overflow:hidden;position:relative;border-radius:5px;letter-spacing:0.05em;"><code class="  language-abap" style="font-family:&quot;margin:0px;padding:5px 15px 15px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:var(--routine);background-image:initial;background-position:0px 0px;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;font-size:1em;word-spacing:normal;word-break:normal;overflow-wrap:normal;line-height:1.5;tab-size:4;hyphens:none;display:block;overflow:auto;">&lt;?php

//存有链接的文件名，这里是存放图片链接的txt文件
$filename <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> <span class="token eol-comment comment" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#708090;">"img.txt";</span> <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">if</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>!file_exists<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$filename<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">{</span> die<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span><span class="token string" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#7EC699;">'文件不存在'</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; <span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">}</span> //从文本获取链接
$pics <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> [];
$fs <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> fopen<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$filename<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">,</span> <span class="token eol-comment comment" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#708090;">"r");</span> <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">while</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>!feof<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$fs<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">{</span> $line=trim<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>fgets<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$fs<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">if</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$line!=<span class="token string" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#7EC699;">''</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">{</span> array_push<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$pics<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">,</span> $line<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; <span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">}</span> <span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">}</span> //从数组随机获取链接
$pic <span class="token operator" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#9A6E3A;">=</span> $pics[array_rand<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$pics<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>];

//返回指定格式
$type=$_GET[<span class="token string" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#7EC699;">'type'</span>]; <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">switch</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>$type<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">{</span> //JSON返回 <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">case</span> <span class="token string" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#7EC699;">'json'</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">:</span> <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">header</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span><span class="token string" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#7EC699;">'Content-type:text/json'</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>;
die<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>json_encode<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>[<span class="token string" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#7EC699;">'pic'</span>=&gt;$pic]<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; <span class="token keyword" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#0077AA;">default</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">:</span> die<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>header<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">(</span>"Location<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">:</span> $pic"<span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span><span class="token punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">)</span>; <span class="token token-operator punctuation" style="margin:0px;padding:0px;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;color:#999999;">}</span></code></pre>
</h1>
<h1 id="随机图片API搭建教程" style="box-sizing:border-box;margin:30px 0px 10px;font-size:30px;font-family:&quot;line-height:1.4;color:#FFFFFF;background-image:linear-gradient(transparent 60%, rgba(189, 202, 219, 0.3) 0px);background-position:initial;background-size:initial;background-repeat:no-repeat;background-attachment:initial;background-origin:initial;background-clip:initial;width:auto;display:inline;white-space:normal;">
	随机图片API搭建教程
</h1>
<div name="1.本地文件夹调用" data-unique="1.本地文件夹调用" style="box-sizing:border-box;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
</div>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	1.本地文件夹调用。
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	2.外链调用(推荐)。
</p>
<div name="1.本地文件夹调用" data-unique="1.本地文件夹调用" style="box-sizing:border-box;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
</div>
<h3 id="1-本地文件夹调用" style="box-sizing:border-box;font-family:&quot;line-height:1.4;color:#FFFFFF;margin:30px 0px 10px;font-size:20px;white-space:normal;">
	1.本地文件夹调用
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第一步：在网站根目录下创建一个文件夹，一个PHP文件：img，index.php。
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第二步：将以下内容写入index.php中。有两个地方可供修改。
</p>
<pre class="mac_light mac_pre box-shadow-wrap-lg" style="box-sizing:border-box;overflow:hidden;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:1.5em;margin-bottom:1.5em;line-height:1.42857;color:#FFFFFF;word-break:break-all;overflow-wrap:break-word;border:none;border-radius:0px;box-shadow:rgba(0, 0, 0, 0.1) 0px 2px 6px;position:relative;background:#EEEEEE !important;"><code class="language-php hljs vditor-linenumber" style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, &quot;font-size:inherit;padding:0.5em;color:#333333;border-radius:0px;overflow-wrap:normal;display:block;overflow-x:auto;position:relative;margin:0px;max-height:630px;background:#F3F3F3 !important;"><span class="hljs-meta" style="box-sizing:border-box;color:#999999;font-weight:bold;">&lt;?php</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img_array</span> = glob(<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">"img/*.{gif,jpg,png}"</span>,GLOB_BRACE); <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img</span> = array_rand(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img_array</span>); <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$dz</span> = <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img_array</span>[<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img</span>];
header(<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">"Location:"</span>.<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$dz</span>); <span class="hljs-meta" style="box-sizing:border-box;color:#999999;font-weight:bold;">?&gt;</span> <span class="vditor-linenumber__rows" style="box-sizing:border-box;position:absolute;pointer-events:none;top:15px;left:0px;width:3em;user-select:none;counter-reset:linenumber 0;"><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span></span></code></pre>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第三步：将喜欢的图片放入img文件夹中，访问绑定的域名即可随机展示。
</p>
<div name="2.外链调用(推荐)" data-unique="2.外链调用(推荐)" style="box-sizing:border-box;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
</div>
<h3 id="2-外链调用-推荐-" style="box-sizing:border-box;font-family:&quot;line-height:1.4;color:#FFFFFF;margin:30px 0px 10px;font-size:20px;white-space:normal;">
	2.外链调用(推荐)
</h3>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第一步：在网站根目录下创建一个txt，一个PHP文件：img.txt，index.php。
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第二步：将以下内容写入index.php中。有一个地方可供修改，
</p>
<pre class="mac_light mac_pre box-shadow-wrap-lg" style="box-sizing:border-box;overflow:hidden;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:1.5em;margin-bottom:1.5em;line-height:1.42857;color:#FFFFFF;word-break:break-all;overflow-wrap:break-word;border:none;border-radius:0px;box-shadow:rgba(0, 0, 0, 0.1) 0px 2px 6px;position:relative;background:#EEEEEE !important;"><code class="language-php hljs vditor-linenumber" style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, &quot;font-size:inherit;padding:0.5em;color:#333333;border-radius:0px;overflow-wrap:normal;display:block;overflow-x:auto;position:relative;margin:0px;max-height:630px;background:#F3F3F3 !important;"><span class="hljs-meta" style="box-sizing:border-box;color:#999999;font-weight:bold;">&lt;?php</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img</span>=file(<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'img.txt'</span>); <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$url</span>=array_rand(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img</span>);

header(<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">"Location:"</span>.<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$img</span>[<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$url</span>]); <span class="hljs-meta" style="box-sizing:border-box;color:#999999;font-weight:bold;">?&gt;</span> <span class="vditor-linenumber__rows" style="box-sizing:border-box;position:absolute;pointer-events:none;top:15px;left:0px;width:3em;user-select:none;counter-reset:linenumber 0;"><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span><span style="box-sizing:border-box;"></span></span></code></pre>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第三步：将喜欢的图片上传到图床后复制链接到img.txt中，访问绑定的域名即可随机展示。
</p>
<div name="设备自适应输出" data-unique="设备自适应输出" style="box-sizing:border-box;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
</div>
<h1 id="设备自适应输出" style="box-sizing:border-box;margin:30px 0px 10px;font-size:30px;font-family:&quot;line-height:1.4;color:#FFFFFF;background-image:linear-gradient(transparent 60%, rgba(189, 202, 219, 0.3) 0px);background-position:initial;background-size:initial;background-repeat:no-repeat;background-attachment:initial;background-origin:initial;background-clip:initial;width:auto;display:inline;white-space:normal;">
	设备自适应输出
</h1>
<span style="color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;background-color:rgba(255, 255, 255, 0.3);"></span>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第一步：在网站根目录准备好不同设备要用的txt图片链接存储文本
</p>
<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;word-break:break-word;color:#FFFFFF;font-family:&quot;font-size:19px;white-space:normal;">
	第二步将以下内容写入index.php中，已注释可供修改
</p>
<pre class="mac_light mac_pre box-shadow-wrap-lg" style="box-sizing:border-box;overflow:hidden;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;padding:0px;margin-top:1.5em;margin-bottom:1.5em;line-height:1.42857;color:#FFFFFF;word-break:break-all;overflow-wrap:break-word;border:none;border-radius:0px;box-shadow:rgba(0, 0, 0, 0.1) 0px 2px 6px;position:relative;background:#EEEEEE !important;"><code class="language-php hljs vditor-linenumber" style="box-sizing:border-box;font-family:Menlo, Monaco, Consolas, &quot;font-size:inherit;padding:0.5em;color:#333333;border-radius:0px;overflow-wrap:normal;display:block;overflow-x:auto;position:relative;margin:0px;max-height:630px;background:#F3F3F3 !important;"><span class="hljs-meta" style="box-sizing:border-box;color:#999999;font-weight:bold;">&lt;?php</span> <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 判断当前设备是否为移动设备的函数</span> <span class="hljs-function" style="box-sizing:border-box;"><span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">function</span> <span class="hljs-title" style="box-sizing:border-box;color:#990000;font-weight:bold;">is_mobile</span>(<span class="hljs-params" style="box-sizing:border-box;"></span>) </span>{ <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$user_agent</span> = <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$_SERVER</span>[<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'HTTP_USER_AGENT'</span>]; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 获取用户代理字符串</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$mobile_agents</span> = <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">array</span>(<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'Android'</span>, <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'iPhone'</span>, <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'Windows Phone'</span>, <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'BlackBerry'</span>, <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'SymbianOS'</span>); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 定义移动设备关键词数组</span> <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 遍历移动设备关键词数组，检查用户代理字符串中是否包含这些关键词</span> <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">foreach</span> (<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$mobile_agents</span> <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">as</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$mobile_agent</span>) { <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">if</span> (stripos(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$user_agent</span>, <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$mobile_agent</span>) !== <span class="hljs-literal" style="box-sizing:border-box;color:#008080;">false</span>) { <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">return</span> <span class="hljs-literal" style="box-sizing:border-box;color:#008080;">true</span>; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 如果找到关键词，返回true表示是移动设备</span> }
    } <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">return</span> <span class="hljs-literal" style="box-sizing:border-box;color:#008080;">false</span>; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 如果没有找到关键词，返回false表示不是移动设备</span> } <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 从指定的txt文件中随机获取一条图片链接的函数</span> <span class="hljs-function" style="box-sizing:border-box;"><span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">function</span> <span class="hljs-title" style="box-sizing:border-box;color:#990000;font-weight:bold;">get_random_image</span>(<span class="hljs-params" style="box-sizing:border-box;"><span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$filename</span></span>) </span>{ <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_urls</span> = file(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$filename</span>, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 读取txt文件的每一行，存储到一个数组中</span> <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">if</span> (count(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_urls</span>) &gt; <span class="hljs-number" style="box-sizing:border-box;color:#008080;">0</span>) { <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$random_index</span> = array_rand(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_urls</span>); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 从数组中随机选择一个索引</span> <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">return</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_urls</span>[<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$random_index</span>]; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 返回选中的图片链接</span> } <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">else</span> { <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">return</span> <span class="hljs-literal" style="box-sizing:border-box;color:#008080;">false</span>; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 如果数组为空，返回false表示没有图片链接</span> }
} <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 直接输出图片的函数</span> <span class="hljs-function" style="box-sizing:border-box;"><span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">function</span> <span class="hljs-title" style="box-sizing:border-box;color:#990000;font-weight:bold;">output_image</span>(<span class="hljs-params" style="box-sizing:border-box;"><span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_url</span></span>) </span>{ <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$headers</span> = get_headers(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_url</span>, <span class="hljs-number" style="box-sizing:border-box;color:#008080;">1</span>); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 获取图片链接的HTTP头信息</span> <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">if</span> (<span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">isset</span>(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$headers</span>[<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'Content-Type'</span>])) {
        header(<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'Content-Type: '</span> . <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$headers</span>[<span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'Content-Type'</span>]); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 设置响应的Content-Type头部信息</span> } <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">echo</span> file_get_contents(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_url</span>); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 读取并输出图片内容</span> } <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$is_mobile</span> = is_mobile(); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 判断当前设备是否为移动设备</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$filename</span> = <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$is_mobile</span> ? <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'mpm.txt'</span> : <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">'moe.txt'</span>; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 根据设备类型选择相应的txt文件</span> <span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_url</span> = get_random_image(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$filename</span>); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 从txt文件中随机获取一条图片链接</span> <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">if</span> (<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_url</span>) {
    output_image(<span class="hljs-variable" style="box-sizing:border-box;color:#008080;">$image_url</span>); <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 输出图片</span> } <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">else</span> { <span class="hljs-keyword" style="box-sizing:border-box;font-weight:bold;">echo</span> <span class="hljs-string" style="box-sizing:border-box;color:#DD1144;">"No images found in the txt file."</span>; <span class="hljs-comment" style="box-sizing:border-box;color:#999988;font-style:italic;">// 如果没有图片链接，输出错误信息</span> } <span class="hljs-meta" style="box-sizing:border-box;color:#999999;font-weight:bold;">?&gt;</span> </code></pre>
<div>
</div>]]></description>
	<pubDate>Sat, 18 Nov 2023 08:34:50 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/64</guid>

</item>
<item>
	<title>Typecho语法大全/Typech常用函数/Typecho调用方法</title>
	<link>http://tusimao.free.fr/post/63</link>
	<description><![CDATA[<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	Typecho的语法及函数，实在记不住，而且每次都要去百度一遍，着实是麻烦。还是自己保存下来吧，方便查阅！
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	文章内容均来自网络，并整合。https://blog.chrison.cn/work/87.html
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	模板常用函数
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	1、站点网址
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;options-&gt;title() ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	2、站点网址
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;options -&gt;siteUrl(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	3、完整路径标题如分享几个 Type­cho 中常用的调用函数
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;archiveTitle(' &amp;raquo; ', &lt; span class="string"&gt;'', ' | '); ?&gt;&lt;?php $this -&gt;options-&gt;title(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	4、站点说明
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;options-&gt;description() ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	5、模板文件夹地址
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;options-&gt;themeUrl(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	6、导入模板文件夹内的 php 文件
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;need('.php'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	7、文章或者页面的作者
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;author(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	8、作者头像
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt; ?php $this-&gt;author-&gt;gravatar('40') ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	此处输出的完整的img标签，40是头像的宽和高。
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	9、该文作者全部文章列表链接
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;author-&gt;permalink (); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	10、该文作者个人主页链接
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;author-&gt;url(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	11 、该文作者的邮箱地址
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;author-&gt;mail(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	12、上一篇与下一篇调用代码
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;thePrev(); ?&gt; &lt;?php $this-&gt;theNext(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	13、判断是否为首页，输出相关内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if ($this-&gt;is('index')): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	//首页输出内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php else: ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	//不是首页输出内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	14、文章或页面，评论数目
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;commentsNum('No Comments', '1 Comment' , '%d Comments'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	15、截取部份文章（首页每篇文章显示摘要），350 是字数
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;excerpt(350, '...'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	16、调用自定义字段（官方文档坑爹，竟然没有，博主自己摸索出来的）
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;fields-&gt;fieldName ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	17、RSS 地址
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php$this-&gt;options-&gt;feedUrl(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	18、获取最新 post
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Contents_Post_Recent', 'pageSize=8&amp;type=category')-&gt;parse('&lt;li&gt;&lt;a href="{permalink}"&gt;{title}&lt;/a&gt;&lt;/li&gt;'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	19、纯文字分类名称，不带链接
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;category(',', false); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	20、获取当前文章所属分类（包含链接）
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if ($this-&gt;is('post')): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;span&gt;&lt;?php $this-&gt;category(' '); ?&gt;&lt;/span&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	21、获取文章分类列表
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Metas_Category_List')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;parse('&lt;li&gt;&lt;a href="{permalink}"&gt;{name}&lt;/a&gt; ({count})&lt;/li&gt;'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	22、获取某分类 post
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	$this-&gt;widget('Widget_Archive@indexyc', 'pageSize=8&amp;type=category', 'mid=1')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;parse('&lt;li&gt;&lt;a href="{permalink}" title="{title}"&gt;{title}&lt;/a&gt;&lt;/li&gt;'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	23、获取最新评论列表
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php $this-&gt;widget('Widget_Comments_Recent')-&gt;to($comments); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php while($comments-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href="&lt;?php $comments-&gt;permalink(); ?&gt;"&gt;&lt;?php $comments-&gt;author(false); ?&gt;&lt;/a&gt;: &lt;?php $comments-&gt;excerpt(50, '...'); ?&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	24、首页获取 最新文章 代码限制条数
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php while ($this-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if ($this-&gt;sequence &lt;= 3): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	html
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	25、获取最新评论列表 (只显示访客评论不显示作者或者说自己发的评论)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Comments_Recent','ignoreAuthor=true')-&gt;to($comments); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php while($comments-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;li&gt;&lt;a href="&lt;?php $comments-&gt;permalink(); ?&gt;"&gt;&lt;?php $comments-&gt;author(false); ?&gt;&lt;/a&gt;: &lt;?php $comments-&gt;excerpt(50, '...'); ?&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	26、获取文章时间归档
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php $this-&gt;widget('Widget_Contents_Post_Date', 'type=month&amp;format=F Y')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;parse('&lt;li&gt;&lt;a href="{permalink}"&gt;{date}&lt;/a&gt;&lt;/li&gt;'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	27、获取标签集合，也就是标签云
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Metas_Tag_Cloud', 'ignoreZeroCount=1&amp;limit=28')-&gt;to($tags); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php while($tags-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;a href="&lt;?php $tags-&gt;permalink(); ?&gt;" class="size-&lt;?php $tags-&gt;split(5, 10, 20, 30); ?&gt;"&gt;&lt;?php $tags-&gt;name(); ?&gt;&lt;/a&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	28、调用该文相关文章列表
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;related(5)-&gt;to($relatedPosts); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php if ($relatedPosts-&gt;have()): ?&gt;    //这句也可以写成 if (count($relatedPosts-&gt;stack))
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;ul&gt;&lt;?php while ($relatedPosts-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;a href="&lt;?php $relatedPosts-&gt;permalink(); ?&gt;" title="&lt;?php $relatedPosts-&gt;title(); ?&gt;"&gt;&lt;?php $relatedPosts-&gt;title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php endwhile; ?&gt;&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php else : ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;无相关文章&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	29、隐藏 head 区域的程序版本和模版名称
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;header("generator=&amp;template="); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	30、获取读者墙
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	$period = time() - 999592000; // 時段: 30 天, 單位: 秒
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	$counts = Typecho_Db::get()-&gt;fetchAll(Typecho_Db::get()
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;select('COUNT(author) AS cnt','author', 'url', 'mail')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;from('table.comments')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;where('created &gt; ?', $period )
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;where('status = ?', 'approved')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;where('type = ?', 'comment')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;where('authorId = ?', '0')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;group('author')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;order('cnt', Typecho_Db::SORT_DESC)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	-&gt;limit(25)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	$mostactive = '';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	$avatar_path = 'http://www.gravatar.com/avatar/';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	foreach ($counts as $count) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; $avatar = $avatar_path . md5(strtolower($count['mail'])) . '.jpg';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; $c_url = $count['url']; if ( !$c_url ) $c_url = Helper::options()-&gt;siteUrl;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; $mostactive .= "&lt;a href='" . $c_url . "' title='" . $count['author'] . " (参与" . $count['cnt'] . "次互动)' target='_blank'&gt;&lt;img src='" . $avatar . "' alt='" . $count['author'] . "的头像' class='avatar' width='32' height='32' /&gt;&lt;/a&gt;\n";
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	echo $mostactive; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	31、登陆与未登录用户展示不同内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if($this-&gt;user-&gt;hasLogin()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	// 登陆可见
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php else: ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	// 未登录和登陆均可见
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	32、导航页面列表调用隐藏特定的页面 这个演示隐藏了 al­bum 和 search 两个页面
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;li&lt;?php if($this-&gt;is('index')): ?&gt; class="current"&lt;?php endif; ?&gt;&gt;&lt;a href="&lt;?php $this-&gt;options-&gt;siteUrl(); ?&gt;"&gt;主页&lt;/a&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Contents_Page_List')-&gt;to($pages); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php while($pages-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php if (($pages-&gt;slug != 'album') &amp;&amp; ($pages-&gt;slug != 'search')): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;li&lt;?php if($this-&gt;is('page', $pages-&gt;slug)): ?&gt; class="current"&lt;?php endif; ?&gt;&gt;&lt;a href="&lt;?php $pages-&gt;permalink(); ?&gt;" title="&lt;?php $pages-&gt;title(); ?&gt;"&gt;&lt;?php $pages-&gt;title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	参数说明：9.0 版 typecho 支出在后台管理页面编辑时选择隐藏页面。
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	33、Type­cho 归档页面
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Contents_Post_Recent', 'pageSize=10000')-&gt;to($archives);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $year=0; $mon=0; $i=0; $j=0;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $output = '&lt;div id="archives"&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; while($archives-&gt;next()):
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; $year_tmp = date('Y',$archives-&gt;created);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; $mon_tmp = date('m',$archives-&gt;created);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; $y=$year; $m=$mon;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; if ($mon != $mon_tmp &amp;&amp; $mon &gt; 0) $output .= '&lt;/ul&gt;&lt;/li&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; if ($year != $year_tmp &amp;&amp; $year &gt; 0) $output .= '&lt;/ul&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; if ($year != $year_tmp) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $year = $year_tmp;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $output .= '&lt;h3 class="al_year"&gt;'. $year .' 年&lt;/h3&gt;&lt;ul class="al_mon_list"&gt;'; //输出年份
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; if ($mon != $mon_tmp) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $mon = $mon_tmp;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $output .= '&lt;li&gt;&lt;span class="al_mon"&gt;'. $mon .' 月&lt;/span&gt;&lt;ul class="al_post_list"&gt;'; //输出月份
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; $output .= '&lt;li&gt;'.date('d日: ',$archives-&gt;created).'&lt;a href="'.$archives-&gt;permalink .'"&gt;'. $archives-&gt;title .'&lt;/a&gt; &lt;em&gt;('. $archives-&gt;commentsNum.')&lt;/em&gt;&lt;/li&gt;'; //输出文章日期和标题
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; endwhile;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $output .= '&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; echo $output;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	34、获取当前文章页缩略图
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;attachments(1)-&gt;attachment-&gt;url(); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	务必注意，这里所谓缩略图指的是当前文章页第一个附件地址，请确保第一个附件类型为图片。
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	35、根据页面类型显示内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	判断是文章页则显示内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if ($this-&gt;is('post')): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	想要显示的内容1
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	判断是页面则显示内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if ($this-&gt;is('page', 'about')): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	想要显示的内容2
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	36、Title增加副标题
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if ($this-&gt;is('index')): ?&gt; - 副标题&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	37、按分类输出cms
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div class="row"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Metas_Category_List')-&gt;to($categories); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php while ($categories-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if(count($categories-&gt;children) === 0): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Archive@category-' . $categories-&gt;mid, 'pageSize=5&amp;type=category', 'mid=' . $categories-&gt;mid)-&gt;to($posts); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div class="col-lg-6"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &lt;div class="panel panel-default"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &lt;div class="panel-heading"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;i class="glyphicon glyphicon-th"&gt;&lt;/i&gt; &lt;a href="&lt;?php $categories-&gt;permalink(); ?&gt;" class="guidang" id="posts-list-&lt;?php $categories-&gt;slug(); ?&gt;"&gt;&lt;?php $categories-&gt;name(); ?&gt;&lt;/a&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;a href="&lt;?php $categories-&gt;permalink(); ?&gt;" class="pull-right" id="posts-list-&lt;?php $categories-&gt;slug(); ?&gt;"&gt;&lt;i class="glyphicon glyphicon-option-horizontal"&gt;&lt;/i&gt;&lt;/a&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &lt;div class="panel-body"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php while ($posts-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;p class="overflow"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href="&lt;?php $posts-&gt;permalink(); ?&gt;" title="&lt;?php $posts-&gt;title(40); ?&gt;"&gt;&lt;i class="glyphicon glyphicon-chevron-right"&gt;&lt;/i&gt; &lt;?php $posts-&gt;title(40); ?&gt;&lt;/a&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php else: ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	38、相关文章
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;related(5)-&gt;to($relatedPosts); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php while ($relatedPosts-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;li&gt;&lt;a href="&lt;?php $relatedPosts-&gt;permalink(); ?&gt;" title="&lt;?php $relatedPosts-&gt;title(); ?&gt;"&gt;&lt;?php $relatedPosts-&gt;title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	39、侧边栏热门标签
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div class="widget"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;h3&gt;&lt;?php _e('热门标签'); ?&gt;&lt;/h3&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul class="cate"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Metas_Tag_Cloud', array('sort' =&gt; 'count', 'ignoreZeroCount' =&gt; true, 'desc' =&gt; true, 'limit' =&gt; 20))-&gt;to($tags); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php while($tags-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;li&gt;&lt;a rel="tag" href="&lt;?php $tags-&gt;permalink(); ?&gt;"&gt;&lt;?php $tags-&gt;name(); ?&gt;&lt;/a&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div class="clear"&gt;&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	40、侧边栏输出所有标签
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div class="widget"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;h3&gt;&lt;?php _e('所有标签'); ?&gt;&lt;/h3&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;ul class="cate"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;widget('Widget_Metas_Tag_Cloud')-&gt;to($tags); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php while($tags-&gt;next()): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;li&gt;&lt;a rel="tag" href="&lt;?php $tags-&gt;permalink(); ?&gt;"&gt;&lt;?php $tags-&gt;name(); ?&gt;&lt;/a&gt;&lt;/li&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endwhile; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div class="clear"&gt;&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/ul&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	41、当前文章的标签
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	说明：(',', true, 'none') 第一个单引号间的逗号代表标签与标签的间隔用逗号隔开，true 是标签以超链接形式输出 false 则只输出文字，none 为该文章没有标签时显示的提示信息可为空。
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;tags(',', true, 'none'); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	引申用法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	如果想给每个标签套上 div 或者 span 什么的就需要这要做
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;div&gt;&lt;?php $this-&gt;tags('&lt;/div&gt;&lt;div&gt;', true, 'none'); ?&gt;&lt;/div&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	判断当前标签并自定义内容
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if( in_array('abc', $this-&gt;tags) ): ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	文章含有abc标签就会显示这里
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	判断文章是否存在标签，如果存在输出标签，如果不存在输出该文章分类
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php if(  count($this-&gt;tags) == 0 ): ?&gt; //此处的count也可改为size
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;category(',', true, 'none'); ?&gt; //文章分类
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php else: ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php $this-&gt;tags(',', true, 'none'); ?&gt; //文章标签
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php endif; ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	代码片段
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	以下为代码片段及对应的调用方式；代码片段请放置于function.php中
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	1、输出文章缩略图
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	/** 输出文章缩略图 */
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	function showThumbnail($widget)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	{
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; // 当文章无图片时的默认缩略图
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $rand = rand(1,5); // 随机 1-5 张缩略图
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $random = $widget-&gt;widget('Widget_Options')-&gt;themeUrl . '/img/sj/' . $rand . '.jpg'; // 随机缩略图路径
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp;// $random = $widget-&gt;widget('Widget_Options')-&gt;themeUrl . '/img/mr.jpg'; // 若只想要一张默认缩略图请删除本行开头的"//"
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $attach = $widget-&gt;attachments(1)-&gt;attachment;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $pattern = '/\&lt;img.*?src\=\"(.*?)\"[^&gt;]*&gt;/i';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	if (preg_match_all($pattern, $widget-&gt;content, $thumbUrl)) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo $thumbUrl[1][0];
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; } else     if ($attach-&gt;isImage) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; echo $attach-&gt;url;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; } else {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; echo $random;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	调用方法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php showThumbnail($this); ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	2、获取文章第一张图片做缩略图
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	function showThumbnail($widget) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　$attach = $widget-&gt;attachments(1)-&gt;attachment;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　$pattern = '/\&lt;img.*?src\=\"(.*?)\"[^&gt;]*&gt;/i';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　if (preg_match_all($pattern, $widget-&gt;content, $thumbUrl)) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　　　echo $thumbUrl[1][0];
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　 else if ($attach-&gt;isImage) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　　　echo $attach-&gt;url;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　} else {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　　　echo $random;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	　　}&nbsp;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	调用方法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;img src="&lt;?php showThumbnail($this); ?&gt;"&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	3、评论自动排第一
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	function Autofirst(){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $db = Typecho_Db::get();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $query = $db-&gt;select()-&gt;from('table.comments')-&gt;where('authorId = ?','0')-&gt;order('coid',Typecho_Db::SORT_DESC)-&gt;limit(100);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $result = $db-&gt;fetchAll($query);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $arrUrl = array();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $arrAuthor = array();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; foreach ($result as $value) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; if($value["url"]!==null){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array_push($arrUrl,$value["url"]);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array_push($arrAuthor,$value["author"]);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $su=array_filter(array_merge(array_unique($arrUrl)));
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $sa=array_filter(array_merge(array_unique($arrAuthor)));
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $num=0;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; for($i=0;$i&lt;count(array_unique($su));$i++){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; if($su[$i]!=="" &amp;&amp; $num&lt;8){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $num+=1;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $db1 = Typecho_Db::get();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $query1 = $db1-&gt;select()-&gt;from('table.comments')-&gt;where('url = ?',$su[$i])-&gt;order('coid',Typecho_Db::SORT_DESC)-&gt;limit(100);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $result1 = $db1-&gt;fetchAll($query1);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $arrAuthor1 = array();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach ($result1 as $value) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array_push($arrAuthor1,$value["author"]);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;div class="col-lg-3 col-md-3 item"&gt;&lt;a href="'.$su[$i].'" rel="external nofollow" class="btn btn-default btn-block overflow" target="_blank"&gt;'.$arrAuthor1[0].'&lt;/a&gt;&lt;/div&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	调用方法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php Autofirst(100) ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	4、随机文章
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	function getRandomPosts($limit = 10){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $db = Typecho_Db::get();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $result = $db-&gt;fetchAll($db-&gt;select()-&gt;from('table.contents')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;where('status = ?','publish')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;where('type = ?', 'post')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;where('created &lt;= unix_timestamp(now())', 'post')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;limit($limit)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;order('RAND()')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; );
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; if($result){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; $i=1;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; foreach($result as $val){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($i&lt;=3){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $var = ' class="red"';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $var = '';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $val = Typecho_Widget::widget('Widget_Abstract_Contents')-&gt;push($val);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $post_title = htmlspecialchars($val['title']);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $permalink = $val['permalink'];
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;li&gt;&lt;i'.$var.'&gt;'.$i.'&lt;/i&gt;&lt;a href="'.$permalink.'" title="'.$post_title.'" target="_blank"&gt;'.$post_title.'&lt;/a&gt;&lt;/li&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i++;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	调用方法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php getRandomPosts('10');?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	5、热门文章
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	function getHotComments($limit = 10){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $db = Typecho_Db::get();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $result = $db-&gt;fetchAll($db-&gt;select()-&gt;from('table.contents')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;where('status = ?','publish')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;where('type = ?', 'post')
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;where('created &lt;= unix_timestamp(now())', 'post') //添加这一句避免未达到时间的文章提前曝光
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;limit($limit)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; -&gt;order('commentsNum', Typecho_Db::SORT_DESC)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; );
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; if($result){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; foreach($result as $val){
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $val = Typecho_Widget::widget('Widget_Abstract_Contents')-&gt;push($val);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $post_title = htmlspecialchars($val['title']);
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $permalink = $val['permalink'];
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo '&lt;li&gt;&lt;a href="'.$permalink.'" title="'.$post_title.'" target="_blank"&gt;'.$post_title.'&lt;/a&gt;&lt;/li&gt;';
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	调用方法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php getHotComments('10');?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	6、文章阅读量统计
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	function get_post_view($archive)
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	{
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $cid    = $archive-&gt;cid;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $db     = Typecho_Db::get();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $prefix = $db-&gt;getPrefix();
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; if (!array_key_exists('views', $db-&gt;fetchRow($db-&gt;select()-&gt;from('table.contents')))) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; $db-&gt;query('ALTER TABLE `' . $prefix . 'contents` ADD `views` INT(10) DEFAULT 0;');
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; echo 0;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp; return;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; $row = $db-&gt;fetchRow($db-&gt;select('views')-&gt;from('table.contents')-&gt;where('cid = ?', $cid));
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; if ($archive-&gt;is('single')) {
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; &nbsp; &nbsp;$db-&gt;query($db-&gt;update('table.contents')-&gt;rows(array('views' =&gt; (int) $row['views'] + 1))-&gt;where('cid = ?', $cid));
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; }
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&nbsp; &nbsp; echo $row['views'];
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	}
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	调用方法：
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	&lt;?php get_post_view($this) ?&gt;
</blockquote>
<blockquote style="box-sizing:border-box;font-family:&quot;margin:0px;padding:30px 60px;background:#F9F9F9;position:relative;overflow-wrap:break-word;word-break:break-all;overflow:hidden;border-radius:5px;quotes:&quot;color:#404040;font-size:16px;white-space:normal;">
	<br />
</blockquote>
<div class="entry-content" style="box-sizing:border-box;font-family:&quot;position:relative;color:#404040;font-size:16px;white-space:normal;background-color:#FFFFFF;">
</div>
<footer class="post-footer" style="box-sizing:border-box;font-family:&quot;padding:20px 10px;margin-top:30px;height:65px;position:relative;color:#404040;font-size:16px;white-space:normal;background-color:#FFFFFF;">
<div class="post-like" style="box-sizing:border-box;float:right;">
	<a data-action="ding" data-id="58" class="specsZan " style="box-sizing:border-box;background-color:transparent;color:#9FE0DD;outline:none;transition:color 0.2s ease-out 0s, border 0.2s ease-out 0s, opacity 0.2s ease-out 0s;font-size:13px;"><span class="fa-solid fa-eye" style="box-sizing:border-box;font-family:&quot;-webkit-font-smoothing:antialiased;display:var(--fa-display,inline-block);font-variant-numeric:normal;font-variant-east-asian:normal;line-height:1;text-rendering:auto;font-weight:900;"></span></a> 
</div>
</footer>
<p>
	<br />
</p>]]></description>
	<pubDate>Thu, 09 Nov 2023 00:36:36 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/63</guid>

</item>
<item>
	<title>CloudFlare官方免费CNAME接入教程</title>
	<link>http://tusimao.free.fr/post/62</link>
	<description><![CDATA[<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	从2021年11月开始，CloudFlare禁用了Partner使用的<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone_set</code>API以避免滥用（因为该API接入不需要验证域名所有权），通过Partner实现CNAME接入的方式近乎落幕，仅剩Plesk空间存量的<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">ServerShield by Cloudflare</code>插件订阅能够正常接入。几个月过去了，官方也并没有对未来合作伙伴如何进行接入新域名给出任何解释。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" fetchpriority="high" class="alignnone size-full wp-image-6212" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_05-22-03.jpg" alt="" width="1200" height="600" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	错过了Partner的时代，官方的CloudFlare for SaaS也提供了一种更灵活的CNAME接入方式，一起来看看吧。
</p>
<hr style="color:#313131;font-family:&quot;font-size:14px;white-space:normal;background-color:#FFFFFF;" />
<h2 id="directory-0" style="border:0px;font-family:&quot;font-size:19px;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	一、功能简介
</h2>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	CloudFlare for SaaS不是个新功能，这里单独拿出来讲，主要是几天前CF调整了一波免费额度。过去是每个域名收取2USD/月的费用，现在不仅提供100个域名免费额度，而且超额后每个域名仅按0.1USD/月收取费用，非常良心。
</p>
<blockquote style="border-width:0px 0px 0px 3px;border-top-style:initial;border-right-style:initial;border-bottom-style:initial;border-left-style:solid;border-top-color:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:rgba(0, 0, 0, 0.8);border-image:initial;font-family:&quot;font-size:14px;margin:30px 0px;outline:0px;padding:0px 0px 0px 10px;vertical-align:baseline;hyphens:none;quotes:none;letter-spacing:0.01rem;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<p style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;">
		<strong style="border:0px;font-family:inherit;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;">官方公告</strong>：<a href="https://blog.cloudflare.com/waf-for-saas/" target="_blank" rel="noopener" style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#7B878C;">https://blog.cloudflare.com/waf-for-saas/</a>
	</p>
</blockquote>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	CloudFlare中一个完全接入的域名即为一个<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>，点进去包括套餐、安全等等都是针对这一主域名配置的。官方SaaS功能针对的是你服务的客户，开放这项功能允许使用他们自己的域名直接附加在你的<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>里，享受你<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>包含的安全、加速等功能。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" class="alignnone size-full wp-image-6192" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-11-39.jpg" alt="" width="1859" height="790" srcset="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-11-39.jpg 1859w, https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-11-39-1536x653.jpg 1536w" sizes="(max-width: 1859px) 100vw, 1859px" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	说起来可能不是很直白，这里举几个应用场景的例子：
</p>
<blockquote style="border-width:0px 0px 0px 3px;border-top-style:initial;border-right-style:initial;border-bottom-style:initial;border-left-style:solid;border-top-color:initial;border-right-color:initial;border-bottom-color:initial;border-left-color:rgba(0, 0, 0, 0.8);border-image:initial;font-family:&quot;font-size:14px;margin:30px 0px;outline:0px;padding:0px 0px 0px 10px;vertical-align:baseline;hyphens:none;quotes:none;letter-spacing:0.01rem;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<p style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;">
		★<strong style="border:0px;font-family:inherit;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;">应用场景1</strong>：<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">a.com</code>通过NS接入了CF，<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">b.com</code>未接入CF；可以通过SaaS功能实现<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">1.b.com</code>/<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">2.b.com</code>等直接附加在<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">a.com</code>上，通过CNAME指向CF的节点。
	</p>
	<p style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;">
		★<strong style="border:0px;font-family:inherit;font-style:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;">应用场景2</strong>：<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">a.com</code>通过Plesk接入了CF，具有免费的Plesk Plus版本，<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">b.com</code>未接入CF或使用的免费版；可以通过SaaS功能实现<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">1.b.com</code>/<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">2.b.com</code>等直接附加在<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">a.com</code>上，享受<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">a.com</code>域名下的ECC+RSA双证书、页面规则、高级防火墙权益。
	</p>
</blockquote>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	简而言之，可以通过这项功能，实现其他域名的CNAME接入以及对<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>权益的共享，有兴趣的话，接着往下看吧~
</p>
<hr style="color:#313131;font-family:&quot;font-size:14px;white-space:normal;background-color:#FFFFFF;" />
<h2 id="directory-1" style="border:0px;font-family:&quot;font-size:19px;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	二、配置接入
</h2>
<h3 style="border:0px;font-family:&quot;font-size:17px;font-weight:500;margin:20px 0px;outline:0px;padding:0px;vertical-align:baseline;position:relative;color:#313131;white-space:normal;background-color:#FFFFFF;">
	订阅CloudFlare for SaaS
</h3>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	打开一个域名，选择【SSL/TLS】下的【自定义主机名】，点击【启用CloudFlare for SaaS】后根据指示绑定外币卡或者PayPal，订阅CloudFlare for SaaS功能。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" class="alignnone size-full wp-image-6195" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-16-44.jpg" alt="" width="1793" height="627" srcset="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-16-44.jpg 1793w, https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-16-44-1536x537.jpg 1536w" sizes="(max-width: 1793px) 100vw, 1793px" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	CloudFlare for SaaS订阅本身是针对整个计费账户的，所以通过Partner接入的域名出现【请联系客户成功经理以启用适用于SaaS的SSL】时，只需要选择个通过官方NS激活的域名启用订阅后即可使用。这里猜测可能是Partner接入的商务权限交给了合作伙伴，方便下放优惠和服务那些，我们绕过去就行了。<img decoding="async" loading="lazy" class="alignnone size-full wp-image-6196" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-20-22.jpg" alt="" width="1385" height="366" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	激活页面中文翻译比较滞后，从英文的可以看到免费额度已经进行更新，可以放心使用。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" loading="lazy" class="alignnone size-full wp-image-6199" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-24-35.jpg" alt="" width="1486" height="648" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<h3 style="border:0px;font-family:&quot;font-size:17px;font-weight:500;margin:20px 0px;outline:0px;padding:0px;vertical-align:baseline;position:relative;color:#313131;white-space:normal;background-color:#FFFFFF;">
	设置源站
</h3>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	选择一个承载的域名<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>点进去，依然是【SSL/TLS】下的【自定义主机名】，首先要设置附加上域名的源站。在这之前要在承载的域名<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>中设置一个子域名作为源站的来源，比如<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">origin.a.com</code>，在Partner或者官方DNS设置好它的源站（注意是是在CF里添加，和正常添加网站的流程一样）。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" loading="lazy" class="alignnone size-full wp-image-6202" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-33-50.jpg" alt="" width="1241" height="411" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	SaaS这里的源站叫回退源（Fallback Origin），输入刚才设置的子域名并点击【Add Fallback Origin】，它会同步这个子域名设置的源站作为后续在此接入域名的源站。有些人就会问了，这样设置那不是后续SaaS添加的所有其他域名就只能用同一个源站了？答案确实是这样，为每个SaaS域名自定义源站需要Enterprise以上套餐，有多域名需求多开几个zone吧（苦笑）。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" loading="lazy" class="alignnone size-full wp-image-6203" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-36-57.jpg" alt="" width="1256" height="430" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<h3 style="border:0px;font-family:&quot;font-size:17px;font-weight:500;margin:20px 0px;outline:0px;padding:0px;vertical-align:baseline;position:relative;color:#313131;white-space:normal;background-color:#FFFFFF;">
	添加自定义主机名
</h3>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	后续的工作就很简单了，点击【添加自定义主机名】，输入你要添加的未在CF接入的子域名。建议直接选择TXT验证，因为除了证书还有另一条TXT记录要添加，一起加上去比较方便。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" loading="lazy" class="alignnone size-full wp-image-6204" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-42-43.jpg" alt="" width="1370" height="557" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<h3 style="border:0px;font-family:&quot;font-size:17px;font-weight:500;margin:20px 0px;outline:0px;padding:0px;vertical-align:baseline;position:relative;color:#313131;white-space:normal;background-color:#FFFFFF;">
	验证域名所有权
</h3>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	添加完成后，按要求解析证书和主机名两个TXT记录，解析生效后10分钟左右即可验证通过，到此这个SaaS域名就正确的添加到了你的<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">zone</code>中并接入了CF。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" loading="lazy" class="alignnone size-full wp-image-6205" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-03-20_04-46-28.jpg" alt="" width="1357" height="466" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	特别提醒，如图这里CF给出的验证TXT名称是应完整域名的解析记录，所以在自己的第三方DNS配置的时候，填入的主机名应当是<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">example</code>和<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">_cf-custom-hostname.example</code>，如果直接复制框内的内容把根域名<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">b.com</code>填进了主机名全域就变成了<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">example.b.com.b.com</code>了，是错误的。配置完成之后你可以通过直接复制的域名来检查TXT记录是否匹配，推荐MySSL的工具（<a href="https://myssl.com/dns_check.html#ssl_verify" target="_blank" rel="noopener" style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#7B878C;">点击前往</a>）。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<img decoding="async" loading="lazy" class="alignnone wp-image-6615 size-full" src="https://cdn.luotianyi.vc/wp-content/uploads/2022-11-03_08-24-53-e1667463970256.png" alt="" width="1012" height="156" style="display:block;max-width:100%;height:auto;width:auto;border-radius:5px;overflow:hidden;" />
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	经过测试，不论以何种方式验证并签发证书，只要保持SSL正确指向CloudFlare，系统就能够在到期前一个月自动为你续期证书，无需进行手动的操作。相应的，SaaS页面<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">Certificate validation method</code>也会变成<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">HTTP Validation</code>。
</p>
<h3 style="border:0px;font-family:&quot;font-size:17px;font-weight:500;margin:20px 0px;outline:0px;padding:0px;vertical-align:baseline;position:relative;color:#313131;white-space:normal;background-color:#FFFFFF;">
	SaaS域名解析
</h3>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	添加进去的SaaS域名，CF并不会给你提供明确的CNAME供指向。如果是官方接入的可以直接CNAME到你刚刚设置的源站域名比如<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">origin.a.com</code>，通过Partner接入的直接解析到源域名对应的CNAME比如<code style="border:0px;font-family:Menlo, Monaco, Consolas, &quot;font-size:13px;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:2px 4px;vertical-align:baseline;white-space:pre-wrap;overflow-wrap:break-word;border-radius:3px;color:#C7254E;background-color:#F9F2F4;">origin.a.com.cdn.cloudflare.net</code>即可。其他的配置比如分线路解析、自选IP就可以按照自己的喜好去设置了，在此不过多赘述。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	此外，对于防火墙规则、页面规则，直接将添加进的域名输入其中即可圈定范围，完成对于其细则的设置。
</p>
<hr style="color:#313131;font-family:&quot;font-size:14px;white-space:normal;background-color:#FFFFFF;" />
<h2 id="directory-2" style="border:0px;font-family:&quot;font-size:19px;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	三、结语
</h2>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	CloudFlare for SaaS是官方提供的一项非常方便的免费功能，弥补了早期未通过Partner接入只能强制NS接入的缺憾。有官方保障、灵活CNAME、免费的优点，也有源站不灵活等缺点，肯定还是不如已经通过Partner/Plesk接入的域名灵活。
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
</p>
<p style="border:0px;font-family:&quot;font-size:14px;margin-top:20px;margin-bottom:20px;outline:0px;padding:0px;vertical-align:baseline;color:#313131;white-space:normal;background-color:#FFFFFF;">
	<h3 style="box-sizing:border-box;margin:20px 0px;padding:5px 0px;text-size-adjust:100%;clear:both;border-bottom:1px solid #EDEDED;color:#666666;font-size:14px;font-family:&quot;white-space:normal;background-color:#FFFFFF;">
		配置 CNAME 接入
	</h3>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		在配置之前，您需要准备两个域名以及PayPal账号：
	</p>
<pre class="wp-block-code" style="box-sizing:border-box;padding:8px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;overflow:auto;max-height:700px;color:#444444;"><code style="box-sizing:border-box;padding:0px;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-attachment:initial;background-origin:initial;background-clip:initial;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">septem.cc : 此域名需要通过 NS 的方式接入CloudFlare
sep.cc : 此域名即为你需要加速的域名。</code></pre>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		一、设置回源域名
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		在配置 CNAME 接入之前，需要设置回源所需的域名。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		在DNS选项中，设置一个自定义的接入CloudFlare的二级域名（即文中提到的&nbsp;<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">septem.cc</code>&nbsp;设置一个二级域名解析到你的网站IP），解析至需要回源的 IP 或域名，并且打开 CloudFlare 的代理）。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<a target="_blank" href="https://sep.cc/wp-content/uploads/2022/08/20220816221436.png" data-fancybox="images" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"></a><a class="aligncenter wp-image-1842 size-full" href="https://sep.cc/wp-content/uploads/2022/08/20220816221436.png" data-fancybox="gallery" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"><img class="aligncenter wp-image-1842 size-full" src="https://sep.cc/wp-content/uploads/2022/08/20220816221436.png" alt="" width="1357" height="684" srcset="https://sep.cc/wp-content/uploads/2022/08/20220816221436.png 1357w, https://sep.cc/wp-content/uploads/2022/08/20220816221436-300x151.png 300w, https://sep.cc/wp-content/uploads/2022/08/20220816221436-1024x516.png 1024w, https://sep.cc/wp-content/uploads/2022/08/20220816221436-768x387.png 768w" sizes="(max-width: 1357px) 100vw, 1357px" style="box-sizing:border-box;margin:0px;padding:0px;text-size-adjust:100%;border-style:none;max-width:100%;height:auto;width:949.835px;" /></a>
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		注：上图红框中的8.8.8.8为你源服务器的IP，切忌一定要填写正确，并打开橙色的代理状态！！！
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		二、开通CloudFlare for SaaS
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		打开网站配置页面，并且找到 SSL/TLS 下的自定义主机名。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		订阅 CloudFlare for SaaS 需要绑定外币信用卡或 PayPal，个人建议绑定PayPal（此过程不会发生扣费）
	</p>
	<ul style="box-sizing:border-box;margin:0px 0px 24px 30px;padding:0px;text-size-adjust:100%;list-style:none;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<li style="box-sizing:border-box;margin:0px 0px 5px;padding:0px;text-size-adjust:100%;list-style:disc;line-height:24px;">
			由于之前已经开通过了，所以无法演示，根据提示进行操作即可。
		</li>
	</ul>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		然后打开 SSL/TLS 下的自定义主机域，在回退源中，填写设置好的域名，并且点添加回退源，等待生效。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<a target="_blank" href="https://sep.cc/wp-content/uploads/2022/08/20220816221628.png" data-fancybox="images" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"></a><a class="aligncenter size-full wp-image-1843" href="https://sep.cc/wp-content/uploads/2022/08/20220816221628.png" data-fancybox="gallery" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"><img class="aligncenter size-full wp-image-1843" src="https://sep.cc/wp-content/uploads/2022/08/20220816221628.png" alt="" width="1363" height="807" srcset="https://sep.cc/wp-content/uploads/2022/08/20220816221628.png 1363w, https://sep.cc/wp-content/uploads/2022/08/20220816221628-300x178.png 300w, https://sep.cc/wp-content/uploads/2022/08/20220816221628-1024x606.png 1024w, https://sep.cc/wp-content/uploads/2022/08/20220816221628-768x455.png 768w" sizes="(max-width: 1363px) 100vw, 1363px" style="box-sizing:border-box;margin:0px;padding:0px;text-size-adjust:100%;border-style:none;max-width:100%;height:auto;width:949.835px;" /></a>
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		三、此时即可增加需要 CNAME 接入的域名
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		点击添加自定义主机名，输入你需要接入的域名，并且选择TLS版本以及证书验证方式即可，点击添加自定义主机名。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<a target="_blank" href="https://sep.cc/wp-content/uploads/2022/08/20220816221841.png" data-fancybox="images" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"></a><a class="aligncenter size-full wp-image-1844" href="https://sep.cc/wp-content/uploads/2022/08/20220816221841.png" data-fancybox="gallery" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"><img class="aligncenter size-full wp-image-1844" src="https://sep.cc/wp-content/uploads/2022/08/20220816221841.png" alt="" width="1049" height="591" srcset="https://sep.cc/wp-content/uploads/2022/08/20220816221841.png 1049w, https://sep.cc/wp-content/uploads/2022/08/20220816221841-300x169.png 300w, https://sep.cc/wp-content/uploads/2022/08/20220816221841-1024x577.png 1024w, https://sep.cc/wp-content/uploads/2022/08/20220816221841-768x433.png 768w" sizes="(max-width: 1049px) 100vw, 1049px" style="box-sizing:border-box;margin:0px;padding:0px;text-size-adjust:100%;border-style:none;max-width:100%;height:auto;width:949.835px;" /></a>
	</p>
	<h3 style="box-sizing:border-box;margin:20px 0px;padding:5px 0px;text-size-adjust:100%;clear:both;border-bottom:1px solid #EDEDED;color:#666666;font-size:14px;font-family:&quot;white-space:normal;background-color:#FFFFFF;">
		验证域名所有权
	</h3>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		添加完成后，按要求解析证书和主机名两个TXT记录，解析生效后10分钟左右即可验证通过，到此这个SaaS域名就正确的添加到了你的<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">zone</code>中并接入了CF。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<a target="_blank" href="https://sep.cc/wp-content/uploads/2022/08/20220816235153.png" data-fancybox="images" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"></a><a class="aligncenter wp-image-1847 size-full" href="https://sep.cc/wp-content/uploads/2022/08/20220816235153.png" data-fancybox="gallery" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"><img class="aligncenter wp-image-1847 size-full" src="https://sep.cc/wp-content/uploads/2022/08/20220816235153.png" alt="" width="1089" height="675" srcset="https://sep.cc/wp-content/uploads/2022/08/20220816235153.png 1089w, https://sep.cc/wp-content/uploads/2022/08/20220816235153-300x186.png 300w, https://sep.cc/wp-content/uploads/2022/08/20220816235153-1024x635.png 1024w, https://sep.cc/wp-content/uploads/2022/08/20220816235153-768x476.png 768w" sizes="(max-width: 1089px) 100vw, 1089px" style="box-sizing:border-box;margin:0px;padding:0px;text-size-adjust:100%;border-style:none;max-width:100%;height:auto;width:949.835px;" /></a>
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		注：如图这里CF给出的验证TXT名称是应完整域名的解析记录，所以在自己的第三方DNS配置的时候，填入的主机名应当是<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">sep.cc</code>和<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">_cf-custom-hostname.sep.cc</code>，如果直接复制框内的内容把根域名<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">sep.cc</code>填进了主机名全域就变成了<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">example.sep.cc.sep.cc</code>了，是错误的。配置完成之后你可以通过直接复制的域名来检查TXT记录是否匹配，推荐MySSL的工具（<a target="_blank" href="https://myssl.com/dns_check.html#ssl_verify" rel="noopener" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;">点击前往</a>）。
	</p>
	<h3 style="box-sizing:border-box;margin:20px 0px;padding:5px 0px;text-size-adjust:100%;clear:both;border-bottom:1px solid #EDEDED;color:#666666;font-size:14px;font-family:&quot;white-space:normal;background-color:#FFFFFF;">
		SaaS域名解析
	</h3>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		添加进去的SaaS域名，CF并不会给你提供明确的CNAME供指向。
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		可利用国内DNS解析可以直接CNAME到你刚刚设置的源站域名比如：
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<code style="box-sizing:border-box;padding:2px 4px;background:#F8F8F8;font-family:Menlo, Monaco, Consolas, &quot;font-size:0.92857em;">sep.cc CNAME记录指向 cname.septem.cc</code>
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		就不再赘述如何解析了，在第三步添加域名的时候可以添加根域名以及二级域名，只要在国内DNS解析的时候验证好TXT记录即可，别忘了在源服务器上建立一个跟你添加的域名相匹配的网站！
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		<a target="_blank" href="https://sep.cc/wp-content/uploads/2022/08/20220816230655.png" data-fancybox="images" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"></a><a class="aligncenter size-full wp-image-1846" href="https://sep.cc/wp-content/uploads/2022/08/20220816230655.png" data-fancybox="gallery" style="box-sizing:border-box;outline:0px;text-decoration-line:none;color:#5895BE;"><img class="aligncenter size-full wp-image-1846" src="https://sep.cc/wp-content/uploads/2022/08/20220816230655.png" alt="" width="666" height="564" srcset="https://sep.cc/wp-content/uploads/2022/08/20220816230655.png 666w, https://sep.cc/wp-content/uploads/2022/08/20220816230655-300x254.png 300w" sizes="(max-width: 666px) 100vw, 666px" style="box-sizing:border-box;margin:0px;padding:0px;text-size-adjust:100%;border-style:none;max-width:100%;height:auto;width:949.835px;" /></a>
	</p>
	<p style="box-sizing:border-box;margin-top:0px;margin-bottom:20px;padding:0px;text-size-adjust:100%;line-height:1.8em;word-break:break-all;color:#444444;font-family:&quot;font-size:16px;white-space:normal;background-color:#FFFFFF;">
		CloudFlare for SaaS是官方提供的一项非常方便的免费功能，弥补了早期未通过Partner接入只能强制NS接入的缺憾。有官方保障、灵活CNAME、免费的优点，相比第三方，数据保存在自己的手上更加安全。
	</p>
</p>]]></description>
	<pubDate>Sun, 05 Nov 2023 13:22:59 +0000</pubDate>
	<author>吐司猫</author>
	<guid>http://tusimao.free.fr/post/62</guid>

</item></channel>
</rss>