<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title><![CDATA[拍拍尘土]]></title> 
    <link>http://blog.xg98.com/</link> 
    <description><![CDATA[五月枇杷黄，太湖银鱼肥]]></description> 
    <language>zh-cn</language> 
    <copyright><![CDATA[Copyright 2026, 拍拍尘土]]></copyright> 
    <webMaster><![CDATA[cxosoft@gmail.com (Admin)]]></webMaster> 
    <generator>LBS v2.0.313</generator> 
    <pubDate>Mon, 04 May 2026 19:35:06 +0800</pubDate> 
    <ttl>60</ttl>
  
    <item>
      <title><![CDATA[thinkphp模块加载示意图 以及 微米的目录结构说明]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2412]]></link> 
      <category><![CDATA[ThinkPHP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2017 15:12:04 +0800</pubDate> 
      <description><![CDATA[<div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/201705/10_151239_11.jpg" target="_blank"><img src="http://blog.xg98.com/attachments/201705/10_151239_11.jpg" alt="http://blog.xg98.com/attachments/201705/10_151239_11.jpg" /></a></div><br /><br /><br /><br /><span style="color:Red">程序目录：</span><br /> &nbsp; &nbsp; &nbsp; WWW WEB部署目录（或者子目录）<br /> &nbsp; &nbsp; &nbsp; ├─index.php 入口文件<br /> &nbsp; &nbsp; &nbsp; ├─README.md README文件<br /> &nbsp; &nbsp; &nbsp; ├─Weimicms 应用目录<br /> &nbsp; &nbsp; &nbsp; ├─tpl 系统模板目录<br /> &nbsp; &nbsp; &nbsp; ├─lib 框架目录<br /> &nbsp; &nbsp; &nbsp; ├─cms 高级模板目录<br /> &nbsp; &nbsp; &nbsp; ├─conf 配置文件目录<br /> &nbsp; &nbsp; &nbsp; └─api 接口文件目录<br /><br /> &nbsp; &nbsp; &nbsp; ├─Weimicms 框架系统目录（可以部署在非web目录下面）<br /> &nbsp; &nbsp; &nbsp; │ ├─Common 核心公共函数目录<br /> &nbsp; &nbsp; &nbsp; │ ├─Conf 核心配置目录<br /> &nbsp; &nbsp; &nbsp; │ ├─Lang 核心语言包目录<br /> &nbsp; &nbsp; &nbsp; │ ├─Lib   框架类库目录<br /> &nbsp; &nbsp; &nbsp; │ │ ├─_Core 核心Think类库包目录<br />]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2412]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[thinkphp无法加载模块解决办法]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2411]]></link> 
      <category><![CDATA[ThinkPHP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2017 14:58:35 +0800</pubDate> 
      <description><![CDATA[基本是大小写的问题，模块文件名的大小写必须一致<br /><br />另外Model 目录下的文件名大小写也要和模块名称保持一致，如Selfform]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2411]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[微米关于新增模块，以及如何设置关键字，并且生效]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2410]]></link> 
      <category><![CDATA[ThinkPHP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2017 14:43:09 +0800</pubDate> 
      <description><![CDATA[<b>模块相关文件如图：</b><br /><div style="width: 100%;overflow-x : auto;"><a href="http://blog.xg98.com/attachments/201705/10_150752_.jpg" target="_blank"><img src="http://blog.xg98.com/attachments/201705/10_150752_.jpg" alt="http://blog.xg98.com/attachments/201705/10_150752_.jpg" /></a></div><br /><br />公众号登录后的<b>左侧菜单</b>修改文件：\tpl\User\default\Public_head.html<br /><br /><br /><br /><br />一、前台关键词回复的生效<br /><br />发现修改 wwwroot\WeimiCms\Lib\Action\User目录下的LinkAction.class.php 并无效果，调试发现作用文件<br /><br />/WeimiCms/Lib/Action/Home/WeixinAction.class.php 文件中有指定2处<div class="code">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;case &#39;Selfform&#39;:<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;requestdata(&#39;other&#39;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$pro=M(&#39;Selfform&#39;)-&gt;where(array(&#39;id&#39;=&gt;$data[&#39;pid&#39;]))-&gt;find();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return </div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2410]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[ThinkPHP获取自动增长ID值]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2408]]></link> 
      <category><![CDATA[ThinkPHP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2017 14:41:29 +0800</pubDate> 
      <description><![CDATA[ThinkPHP获取自动增长ID值 <br /><div class="code"><br />$this-&gt;user-&gt;add($data);<br />session(&#39;id&#39;, $this-&gt;user-&gt;getLastInsID());</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2408]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[解决表单令牌验证，ajax无刷新多次提交暂不能满足问题]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2407]]></link> 
      <category><![CDATA[ThinkPHP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2017 10:02:18 +0800</pubDate> 
      <description><![CDATA[手动强制更新没有刷新的表单令牌来解决ajax无刷新页面下，多次提交表单的问题<br /><br />今天要解决的问题是，表单令牌在ajax应用中不友好的问题。<br /><br />具体不罗嗦，直接上代码：<br /><br />原函数：<br /><div class="code">public function ajaxBack($msg,$status){<br /><br />&nbsp;&nbsp; &nbsp; $array = array();<br /><br />&nbsp;&nbsp; &nbsp; $array[&#39;msg&#39;]=$msg;<br /><br />&nbsp;&nbsp; &nbsp; $key = md5(rand(55, 999999999999999999999));<br /><br />&nbsp;&nbsp; &nbsp; $value = md5(rand(55, 999999999999999999999));<br /><br />&nbsp;&nbsp; &nbsp; $_SESSION[&#39;__hash__&#39;]=array($key=&gt;$value);<br /><br />&nbsp;&nbsp; &nbsp; $array[&#39;__hash__&#39;]=$key.&quot;_&quot;.$value;<br /><br />&nbsp;&nbsp; &nbsp; $array[&#39;status&#39;]=$status;</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2407]]></wfw:commentRss>
    </item>
      
    <item>
      <title><![CDATA[Thinkphp使用ajax 提交时遇到的 表单令牌错误 问题]]></title> 
      <link><![CDATA[http://blog.xg98.com/article.asp?id=2406]]></link> 
      <category><![CDATA[ThinkPHP]]></category> 
      <author><![CDATA[admin <null@null.com>]]></author> 
      <pubDate>Wed, 10 May 2017 09:48:32 +0800</pubDate> 
      <description><![CDATA[thinkphp表单令牌的作用是防止表单重复提交，开启自动验证之后会自动在表单里面生成一个 __hash__ 的隐藏表单，表单通过POST方式提交后与服务器中的session做判断，不一致就提示 <span style="color:Red">表单令牌错误</span>。<br /><br /><b>解决办法：使用post提交ajax，然后在post数据中加入__hash__，用来完成令牌验证。</b><br /><br /><br />服务器端调用create方法会调用 autoCheckToken() 来验证表单令牌。<br />/lib/core/model.class.php 中有一个函数 autoCheckToken() 执行表单令牌错误的验证，代码如下：<div class="code">&nbsp;<br /><br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; // 自动表单令牌验证<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; // TODO  ajax无刷新多次提交暂不能满足<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; public function autoCheckToken($data) {</div>]]></description>
      <wfw:commentRss><![CDATA[http://blog.xg98.com/feed.asp?q=comment&id=2406]]></wfw:commentRss>
    </item>
      
  </channel>
</rss>
