{"id":1448,"date":"2017-12-05T23:32:29","date_gmt":"2017-12-05T15:32:29","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1448"},"modified":"2017-12-05T23:32:29","modified_gmt":"2017-12-05T15:32:29","slug":"%e7%bb%87%e6%a2%a6dedecms%e9%a6%96%e9%a1%b5%e8%b0%83%e7%94%a8%e6%96%87%e7%ab%a0%e8%af%84%e8%ae%ba%e6%95%b0","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1448.html","title":{"rendered":"\u7ec7\u68a6Dedecms\u9996\u9875\u8c03\u7528\u6587\u7ae0\u8bc4\u8bba\u6570"},"content":{"rendered":"
\u7b2c\u4e00\uff1a\u9700\u8981\u4fee\u6539 include\/extend.func.php \u6587\u4ef6,\u5728\u5b83\u7684\u6700\u540e\u9762\u52a0\u4e0a\uff1a<\/p>\n
\/\/\u8c03\u7528\u5355\u7bc7\u6587\u7ae0\u8bc4\u8bba\u6570\r\n\r\nfunction cnum($id)\r\n{\r\nglobal $dsql;\r\n$row = $dsql->GetOne(\"Select count(id) as c from dede_feedback where aid='$id'\");\r\n$num=$row['c'];\r\nif($num==0)$num=' 0';\r\nreturn $num;\r\n}<\/code><\/pre>\n <\/p>\n
\u7b2c\u4e8c\uff1a\u6a21\u677f\u4f7f\u7528 [field:id function=\"cnum(@me)\"\/]\u8c03\u7528\u5373\u53ef<\/p>\n","protected":false},"excerpt":{"rendered":"
\u7b2c\u4e00\uff1a\u9700\u8981\u4fee\u6539 include\/extend.func.php \u6587\u4ef6,\u5728\u5b83\u7684\u6700\u540e\u9762\u52a0\u4e0a\uff1a \/\/\u8c03\u7528\u5355\u7bc7\u6587\u7ae0\u8bc4\u8bba […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,180,456,419,338],"class_list":["post-1448","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-180","tag-456","tag-419","tag-338"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1448"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1448\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}