{"id":29450,"date":"2024-11-25T10:04:09","date_gmt":"2024-11-25T02:04:09","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29450\/"},"modified":"2024-11-25T10:04:09","modified_gmt":"2024-11-25T02:04:09","slug":"%e7%bb%87%e6%a2%a6%e4%bc%9a%e5%91%98%e6%8a%95%e7%a8%bf%e5%ae%a1%e6%a0%b8%e5%90%8e%e6%80%8e%e4%b9%88%e7%bb%99%e6%8a%95%e7%a8%bf%e4%ba%ba%e5%8f%91%e9%80%81%e6%88%90%e5%8a%9f%e5%ae%a1%e6%a0%b8%e7%9f%ad","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29450\/","title":{"rendered":"\u7ec7\u68a6\u4f1a\u5458\u6295\u7a3f\u5ba1\u6838\u540e\u600e\u4e48\u7ed9\u6295\u7a3f\u4eba\u53d1\u9001\u6210\u529f\u5ba1\u6838\u77ed\u6d88\u606f"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/040\/5dc64eeb0cca2196.jpg\" class=\"aligncenter\" title=\"\u7ec7\u68a6\u4f1a\u5458\u6295\u7a3f\u5ba1\u6838\u540e\u600e\u4e48\u7ed9\u6295\u7a3f\u4eba\u53d1\u9001\u6210\u529f\u5ba1\u6838\u77ed\u6d88\u606f\u63d2\u56fe\" alt=\"\u7ec7\u68a6\u4f1a\u5458\u6295\u7a3f\u5ba1\u6838\u540e\u600e\u4e48\u7ed9\u6295\u7a3f\u4eba\u53d1\u9001\u6210\u529f\u5ba1\u6838\u77ed\u6d88\u606f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u7ec7\u68a6\u4f1a\u5458\u6295\u7a3f\u5ba1\u6838\u540e\u600e\u4e48\u7ed9\u6295\u7a3f\u4eba\u53d1\u9001\u6210\u529f\u5ba1\u6838\u77ed\u6d88\u606f &nbsp; &nbsp;<\/strong><\/p>\n<p><strong>1.\u6253\u5f00dede\/archives_do.php,\u627e\u5230:<\/strong><\/p>\n<pre>$query = \"SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `dede_arctiny` arc\nLEFT JOIN `xc_arctype` tp ON tp.id=arc.typeid\nLEFT JOIN `xc_channeltype` ch ON ch.id=tp.channeltype\nWHERE arc.id in($arcids) \";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4fee\u6539\u4e3a:<\/p>\n<pre>$query = \"SELECT arc.id,arc.mid,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `dede_arctiny` arc\nLEFT JOIN `xc_arctype` tp ON tp.id=arc.typeid\nLEFT JOIN `xc_channeltype` ch ON ch.id=tp.channeltype\nWHERE arc.id in($arcids) \";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5b9e\u73b0\u529f\u80fd,\u63d0\u53d6\u53d1\u8868\u8005ID,\u4e5f\u5c31\u662f\u5728\u540e\u53f0\u4f1a\u5458\u4e2d\u5fc3\u770b\u5230\u7684mid\u503c.<\/p>\n<p><strong>2.\u627e\u5230:<\/strong><\/p>\n<pre>$dsql-&gt;Execute('ckall');<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u5176\u4e0b\u8fb9\u6dfb\u52a0\u4e00\u884c:<\/p>\n<pre>$dtime = time();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5b9e\u73b0\u529f\u80fd,\u83b7\u53d6\u5f53\u524d\u5ba1\u6838\u65f6\u95f4,\u4e5f\u5c31\u662f\u53d1\u5e03\u77ed\u6d88\u606f\u7684\u65f6\u95f4.<\/p>\n<p><strong>3.\u627e\u5230:<\/strong><\/p>\n<pre>$dsql-&gt;ExecuteNoneQuery(\"Update `dede_member`\nset scores=scores+{$cfg_sendarc_scores} where mid='\".$cfg_ml-&gt;M_ID.\"' ; \");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u5176\u4e0b\u8fb9\u6dfb\u52a0:<\/p>\n<pre>$mid = $row['mid'];\n$dsql-&gt;ExecuteNoneQuery(\"INSERT INTO `dede_member_pms`\n(`floginid`,`fromid`,`toid`,`folder`,`subject`,`sendtime`,`writetime`,\n`hasview`,`isadmin`,`message`)\nVALUES ('admin','1','$mid','inbox','\u6587\u6863\u5ba1\u6838\u6d88\u606f!',\n'$dtime','$dtime','0','0','\u60a8\u7684\u6587\u7ae0\u5df2\u7ecf\u7ecf\u8fc7\u4e86\u672c\u7ad9\u7684\u5ba1\u6838!')\");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5b9e\u73b0\u529f\u80fd,\u8bfb\u51fa\u7528\u6237id,\u5e76\u628a\u6240\u6709\u4fe1\u606f\u5199\u5165\u77ed\u6d88\u606f\u8868.<\/p>\n<p>\u8fd9\u6837\u5c31\u4f1a\u5728\u5ba1\u6838\u7684\u540c\u65f6\u53d1\u9001\u4e00\u6761\u77ed\u4fe1\u606f\u7ed9\u76f8\u5e94\u7684\u53d1\u5e03\u8005\u4e86.<\/p>\n<p>\u6ce8:\u6b64\u65b9\u6cd5\u4e2d\u7684\u8868\u540d\u6539\u4e3a\u60a8\u81ea\u5df1\u7684\u8868\u540d\u5373\u53ef.<\/p>\n<p>\u63a8\u8350\u6559\u7a0b\uff1a\/&#8221; target=&#8221;_blank&#8221;&gt;dedecms\u6559\u7a0b<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u4f1a\u5458\u6295\u7a3f\u5ba1\u6838\u540e\u600e\u4e48\u7ed9\u6295\u7a3f\u4eba\u53d1\u9001\u6210\u529f\u5ba1\u6838\u77ed\u6d88\u606f\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>\u7ec7\u68a6\u4f1a\u5458\u6295\u7a3f\u5ba1\u6838\u540e\u600e\u4e48\u7ed9\u6295\u7a3f\u4eba\u53d1\u9001\u6210\u529f\u5ba1\u6838\u77ed\u6d88\u606f &nbsp; &nbsp; 1.\u6253\u5f00dede\/archives_do.php,\u627e\u5230: $query = &#8220;SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `dede_arctiny` arc LEFT JOIN `xc_arctype` tp ON tp.id=arc.typeid LEFT JOIN `xc_channeltype` ch ON ch.id=tp.channeltype WHERE arc.id in($arcids) &#8220;; \u767b\u5f55\u540e\u590d\u5236 \u4fee\u6539\u4e3a: $query = &#8220;SELECT arc.id,arc.mid,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `dede_arctiny` arc LEFT JOIN `xc_arctype` tp ON tp.id=arc.typeid LEFT JOIN `xc_channeltype` ch ON ch.id=tp.channeltype WHERE arc.id in($arcids) &#8220;; \u767b\u5f55\u540e\u590d\u5236 \u5b9e\u73b0\u529f\u80fd,\u63d0\u53d6\u53d1\u8868\u8005ID,\u4e5f\u5c31\u662f\u5728\u540e\u53f0\u4f1a\u5458\u4e2d\u5fc3\u770b\u5230\u7684mid\u503c. 2.\u627e\u5230: [&hellip;]<\/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-29450","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29450","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=29450"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29450\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}