{"id":28955,"date":"2024-11-25T08:07:28","date_gmt":"2024-11-25T00:07:28","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28955\/"},"modified":"2024-11-25T08:07:28","modified_gmt":"2024-11-25T00:07:28","slug":"dede%e6%96%87%e7%ab%a0%e9%a1%b5%e9%9d%a2%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e4%bd%9c%e8%80%85%e7%9a%84%e5%a4%b4%e5%83%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28955\/","title":{"rendered":"dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5df1aa33c75d6544.jpg\" class=\"aligncenter\" title=\"dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\u63d2\u56fe\" alt=\"dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\uff1f<\/strong><\/p>\n<p>dede\u5728\u6587\u7ae0\u9875\u9762\u663e\u793a\u4f5c\u8005\u53ea\u662f\u663e\u793a\u5176\u7528\u6237\u540d\uff0c\u4f46\u662f\u5047\u5982\u6211\u60f3\u628adede\u6539\u9020\u6210\u8f83\u4e3a\u793e\u4ea4\u5316\u7684\u7f51\u7ad9\uff0c\u6211\u89c9\u5f97\u662f\u6709\u5fc5\u8981\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\u7684\uff0c\u4f46\u662f\u5b98\u65b9\u5e76\u6ca1\u6709\u76f8\u5e94\u7684\u6a21\u7248\u6807\u7b7e\u3002&nbsp;<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u5728\u7f51\u4e0a\u770b\u5230\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u529e\u6cd5\u57fa\u672c\u4e0a\u662f\u76f4\u63a5\u5728\u6a21\u7248\u9875\u9762\u8c03\u7528runphp\u7684\u7a0b\u5e8f\u6bb5\uff0c\u7684\u786e\u8fd9\u79cd\u529e\u6cd5\u662f\u53ef\u884c\u7684\u3002&nbsp;<\/p>\n<p>\u4f46\u662f\u6211\u4e0d\u503e\u5411\u4e8e\u8fd9\u4e48\u505a\uff0c\u56e0\u4e3a\u5f88\u591a\u65f6\u5019\u6211\u4eec\u90fd\u9700\u8981\u5dee\u5f02\u5316\u7684\u529f\u80fd\uff0c\u6bcf\u6b21\u90fd\u8fd9\u6837\u5939\u6742\u7740php\u4ee3\u7801\u770b\u8d77\u6765\u5f88\u4e71\u3002&nbsp;<\/p>\n<p>\u6211\u662f\u76f4\u63a5\u5728php\u6587\u4ef6\u91cc\u9762\u4fee\u6539\u7684\uff0c\u8ba9\u6587\u7ae0\u6a21\u7248\u53ef\u4ee5\u8c03\u7528\u51e0\u4e2a\u65b0\u7684\u6807\u7b7e\u3002&nbsp;<\/p>\n<p>\u627e\u5230\/include\/arc.archives.class.php\u6587\u4ef6&nbsp;<\/p>\n<p>\u641c\u7d22\u201c$this-&gt;addTableRow = $this-&gt;dsql-&gt;GetOne($query);\u201d\uff0c\u8df3\u8f6c\u5230\u5927\u6982154\u884c\uff0c\u5728else{ $this-&gt;Fields[&#8216;templet&#8217;] = $this-&gt;Fields[&#8216;redirecturl&#8217;] = &#8221;;}\u4e0b\u9762\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>\/*HEJIE_MODIFY\u6587\u7ae0\u4f5c\u8005\u4fe1\u606f&nbsp;@www.68cpu.com*\/&nbsp;\n$query&nbsp;=&nbsp;\"SELECT&nbsp;*&nbsp;FROM&nbsp;jcode_member&nbsp;WHERE&nbsp;`mid`&nbsp;=&nbsp;\".$this-&amp;gt;Fields['mid'];&nbsp;\n$authorInfo&nbsp;=&nbsp;$this-&amp;gt;dsql-&amp;gt;GetOne($query);&nbsp;\n$this-&amp;gt;Fields['authoranme']=$authorInfo['uname'];&nbsp;\n$this-&amp;gt;Fields['authorface']=$authorInfo['face'];&nbsp;\nif(empty($this-&amp;gt;Fields['authorface']))&nbsp;\n{&nbsp;\n$this-&amp;gt;Fields['authorface']=($this-&amp;gt;authorInfo['sex']=='\u5973')?&nbsp;'..\/member\/templets\/images\/dfgirl.png'&nbsp;:&nbsp;'..\/member\/templets\/images\/dfboy.png';&nbsp;\n}&nbsp;\n$this-&amp;gt;Fields['authorface']=\"&lt;a&gt;&lt;img  alt=\"dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\" &gt;Fields['authorface'].\"'&nbsp;\/&amp;gt;&lt;\/a&gt;\";&nbsp;\n$this-&amp;gt;Fields['authoremail']=$authorInfo['email'];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u7684\u4f5c\u7528\u5c31\u662f\u6839\u636e\u6587\u7ae0\u7684\u4f5c\u8005id\u67e5\u8be2\u4f5c\u8005\u4fe1\u606f\uff0c\u5176\u4e2d\u5f53\u7136\u5305\u62ec\u5934\u50cf\u3002&nbsp;<\/p>\n<p>\u6211\u8fd9\u91cc\u4e3a\u4e86\u4ee5\u540e\u5907\u7528\u67e5\u8be2\u51fa\u4e86\u5934\u50cf email \u548c\u7528\u6237\u540d\u79f0\u4e09\u79cd\u4fe1\u606f\u3002&nbsp;<\/p>\n<p>\u5728\u7528\u6237\u5934\u50cf\u7684\u8fd9\u4e2a\u6807\u7b7e\u91cc\u9762\u6211\u505a\u4e86\u4e00\u4e9b\u5904\u7406\uff0c\u4f7f\u5728\u6a21\u7248\u4e2d\u8c03\u7528\u7684\u65f6\u5019\u80fd\u76f4\u63a5\u751f\u6210\u94fe\u63a5\uff0c\u6307\u5411\u4f5c\u8005\u7684\u7a7a\u95f4\u3002&nbsp;<\/p>\n<p>\u5728\u6587\u7ae0\u6a21\u677f\u4e2d\u8c03\u7528\u4f5c\u8005\u5934\u50cf\u7684\u8bed\u53e5\u4e3a\uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>{dede:field.authorface\/}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u4e2a\u6807\u7b7e\u5bf9\u5e94\u7684php\u4ee3\u7801\u5176\u5b9e\u5c31\u662f\u4e0a\u9762\u7684$this-&gt;Fields[&#8216;authorface&#8217;]\uff0c\u540c\u7406\u6211\u4eec\u8981\u67e5\u8be2\u51fa\u4f5c\u8005\u7684email\u4fe1\u606f\u5176\u5b9e\u662f\u5728php\u4ee3\u7801\u7684$this-&gt;Fields[&#8216;authoremail&#8217;]\u4e2d\uff0c\u5bf9\u5e94\u7684\u6a21\u7248\u6807\u7b7e\u4e3a{dede:field.authoremail\/}<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fdede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\uff1f dede\u5728\u6587\u7ae0\u9875\u9762\u663e\u793a\u4f5c\u8005\u53ea\u662f\u663e\u793a\u5176\u7528\u6237\u540d\uff0c\u4f46\u662f\u5047\u5982\u6211\u60f3\u628adede\u6539\u9020\u6210\u8f83\u4e3a\u793e\u4ea4\u5316\u7684\u7f51\u7ad9\uff0c\u6211\u89c9\u5f97\u662f\u6709\u5fc5\u8981\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\u7684\uff0c\u4f46\u662f\u5b98\u65b9\u5e76\u6ca1\u6709\u76f8\u5e94\u7684\u6a21\u7248\u6807\u7b7e\u3002&nbsp; \u63a8\u8350\u5b66\u4e60\uff1a \u5728\u7f51\u4e0a\u770b\u5230\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u529e\u6cd5\u57fa\u672c\u4e0a\u662f\u76f4\u63a5\u5728\u6a21\u7248\u9875\u9762\u8c03\u7528runphp\u7684\u7a0b\u5e8f\u6bb5\uff0c\u7684\u786e\u8fd9\u79cd\u529e\u6cd5\u662f\u53ef\u884c\u7684\u3002&nbsp; \u4f46\u662f\u6211\u4e0d\u503e\u5411\u4e8e\u8fd9\u4e48\u505a\uff0c\u56e0\u4e3a\u5f88\u591a\u65f6\u5019\u6211\u4eec\u90fd\u9700\u8981\u5dee\u5f02\u5316\u7684\u529f\u80fd\uff0c\u6bcf\u6b21\u90fd\u8fd9\u6837\u5939\u6742\u7740php\u4ee3\u7801\u770b\u8d77\u6765\u5f88\u4e71\u3002&nbsp; \u6211\u662f\u76f4\u63a5\u5728php\u6587\u4ef6\u91cc\u9762\u4fee\u6539\u7684\uff0c\u8ba9\u6587\u7ae0\u6a21\u7248\u53ef\u4ee5\u8c03\u7528\u51e0\u4e2a\u65b0\u7684\u6807\u7b7e\u3002&nbsp; \u627e\u5230\/include\/arc.archives.class.php\u6587\u4ef6&nbsp; \u641c\u7d22\u201c$this-&gt;addTableRow = $this-&gt;dsql-&gt;GetOne($query);\u201d\uff0c\u8df3\u8f6c\u5230\u5927\u6982154\u884c\uff0c\u5728else{ $this-&gt;Fields[&#8216;templet&#8217;] = $this-&gt;Fields[&#8216;redirecturl&#8217;] = &#8221;;}\u4e0b\u9762\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a&nbsp; \u4ee3\u7801\u5982\u4e0b: \/*HEJIE_MODIFY\u6587\u7ae0\u4f5c\u8005\u4fe1\u606f&nbsp;@www.68cpu.com*\/&nbsp; $query&nbsp;=&nbsp;&#8220;SELECT&nbsp;*&nbsp;FROM&nbsp;jcode_member&nbsp;WHERE&nbsp;`mid`&nbsp;=&nbsp;&#8220;.$this-&amp;gt;Fields[&#8216;mid&#8217;];&nbsp; $authorInfo&nbsp;=&nbsp;$this-&amp;gt;dsql-&amp;gt;GetOne($query);&nbsp; $this-&amp;gt;Fields[&#8216;authoranme&#8217;]=$authorInfo[&#8216;uname&#8217;];&nbsp; $this-&amp;gt;Fields[&#8216;authorface&#8217;]=$authorInfo[&#8216;face&#8217;];&nbsp; if(empty($this-&amp;gt;Fields[&#8216;authorface&#8217;]))&nbsp; {&nbsp; $this-&amp;gt;Fields[&#8216;authorface&#8217;]=($this-&amp;gt;authorInfo[&#8216;sex&#8217;]==&#8217;\u5973&#8217;)?&nbsp;&#8216;..\/member\/templets\/images\/dfgirl.png&#8217;&nbsp;:&nbsp;&#8216;..\/member\/templets\/images\/dfboy.png&#8217;;&nbsp; }&nbsp; $this-&amp;gt;Fields[&#8216;authorface&#8217;]=&#8221;&lt;a&gt;&lt;img alt=&#8221;dede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf&#8221; &gt;Fields[&#8216;authorface&#8217;].&#8221;&#8216;&nbsp;\/&amp;gt;&lt;\/a&gt;&#8221;;&nbsp; $this-&amp;gt;Fields[&#8216;authoremail&#8217;]=$authorInfo[&#8217;email&#8217;]; \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u6bb5\u4ee3\u7801\u7684\u4f5c\u7528\u5c31\u662f\u6839\u636e\u6587\u7ae0\u7684\u4f5c\u8005id\u67e5\u8be2\u4f5c\u8005\u4fe1\u606f\uff0c\u5176\u4e2d\u5f53\u7136\u5305\u62ec\u5934\u50cf\u3002&nbsp; \u6211\u8fd9\u91cc\u4e3a\u4e86\u4ee5\u540e\u5907\u7528\u67e5\u8be2\u51fa\u4e86\u5934\u50cf email \u548c\u7528\u6237\u540d\u79f0\u4e09\u79cd\u4fe1\u606f\u3002&nbsp; \u5728\u7528\u6237\u5934\u50cf\u7684\u8fd9\u4e2a\u6807\u7b7e\u91cc\u9762\u6211\u505a\u4e86\u4e00\u4e9b\u5904\u7406\uff0c\u4f7f\u5728\u6a21\u7248\u4e2d\u8c03\u7528\u7684\u65f6\u5019\u80fd\u76f4\u63a5\u751f\u6210\u94fe\u63a5\uff0c\u6307\u5411\u4f5c\u8005\u7684\u7a7a\u95f4\u3002&nbsp; \u5728\u6587\u7ae0\u6a21\u677f\u4e2d\u8c03\u7528\u4f5c\u8005\u5934\u50cf\u7684\u8bed\u53e5\u4e3a\uff1a&nbsp; \u4ee3\u7801\u5982\u4e0b: {dede:field.authorface\/} \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u4e2a\u6807\u7b7e\u5bf9\u5e94\u7684php\u4ee3\u7801\u5176\u5b9e\u5c31\u662f\u4e0a\u9762\u7684$this-&gt;Fields[&#8216;authorface&#8217;]\uff0c\u540c\u7406\u6211\u4eec\u8981\u67e5\u8be2\u51fa\u4f5c\u8005\u7684email\u4fe1\u606f\u5176\u5b9e\u662f\u5728php\u4ee3\u7801\u7684$this-&gt;Fields[&#8216;authoremail&#8217;]\u4e2d\uff0c\u5bf9\u5e94\u7684\u6a21\u7248\u6807\u7b7e\u4e3a{dede:field.authoremail\/} \u4ee5\u4e0a\u5c31\u662fdede\u6587\u7ae0\u9875\u9762\u5982\u4f55\u663e\u793a\u4f5c\u8005\u7684\u5934\u50cf\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-28955","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28955"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28955\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}