{"id":2829,"date":"2019-06-25T23:39:32","date_gmt":"2019-06-25T15:39:32","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2829"},"modified":"2019-06-25T23:39:32","modified_gmt":"2019-06-25T15:39:32","slug":"%e7%bb%87%e6%a2%a6%e8%87%aa%e5%ae%9a%e4%b9%89%e8%a1%a8%e5%8d%95%e5%bf%85%e5%a1%ab%e7%9a%84%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2829.html","title":{"rendered":"\u7ec7\u68a6\u81ea\u5b9a\u4e49\u8868\u5355\u5fc5\u586b\u7684\u8bbe\u7f6e"},"content":{"rendered":"

\u7ec7\u68a6\u81ea\u5b9a\u4e49\u8868\u5355\u9ed8\u8ba4\u662f\u6ca1\u6709\u5fc5\u586b\u9879\u7684\u8bbe\u7f6e\uff0c\u5982\u679c\u8981\u8bbe\u7f6e\u7ec7\u68a6\u81ea\u5b9a\u4e49\u8868\u5355\u7684\u5fc5\u586b\u9879\uff0c\u9700\u8981\u8fdb\u884c\u989d\u5916\u7684\u4fee\u6539\uff01<\/p>\n

\u6253\u5f00\/plus\/diy.php\uff0c\u641c\u7d22<\/p>\n

$dede_fields = empty($dede_fields) ? '' : trim($dede_fields);<\/code><\/pre>\n

\u5927\u7ea6\u572840\u884c\u5de6\u53f3\uff0c\u5728\u5b83\u4e0b\u9762\u6dfb\u52a0<\/p>\n

\/\/\u589e\u52a0\u5fc5\u586b\u5b57\u6bb5\u5224\u65ad\r\nif($required!=''){\r\n    if(preg_match('\/,\/', $required)){\r\n        $requireds = explode(',',$required);\r\n        foreach($requireds as $field){\r\n            if($$field==''){\r\n                showMsg('\u5e26*\u53f7\u7684\u4e3a\u5fc5\u586b\u5185\u5bb9\uff0c\u8bf7\u6b63\u786e\u586b\u5199', '-1');\r\n                exit();\r\n            }\r\n        }\r\n    }else{\r\n        if($required==''){\r\n            showMsg('\u5e26*\u53f7\u7684\u4e3a\u5fc5\u586b\u5185\u5bb9\uff0c\u8bf7\u6b63\u786e\u586b\u5199', '-1');\r\n            exit();\r\n        }\r\n    }\r\n}\r\n\/\/end<\/code><\/pre>\n

\u5728\u6a21\u677f\u8868\u5355\u91cc\u9762\u6dfb\u52a0<\/p>\n

<input type=\"hidden\" name=\"required\" value=\"\u6570\u636e\u5b57\u6bb5\u540d,\u6570\u636e\u5b57\u6bb5\u540d\" \/><\/code><\/pre>\n

\u4fdd\u5b58\u540e\uff0c\u5fc5\u586b\u9879\u8bbe\u7f6e\u5b8c\u6210\uff0c\u5f53\u7528\u6237\u63d0\u4ea4\u8868\u5355\u7684\u65f6\u95f4\uff0c\u7cfb\u7edf\u68c0\u67e5\u5230\u5fc5\u586b\u9879\u6ca1\u6709\u8f93\u5165\u5185\u5bb9\uff0c\u5c31\u4f1a\u63d0\u793a\u201c\u5e26*\u53f7\u7684\u4e3a\u5fc5\u586b\u5185\u5bb9\uff0c\u8bf7\u6b63\u786e\u586b\u5199\u201d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ec7\u68a6\u81ea\u5b9a\u4e49\u8868\u5355\u9ed8\u8ba4\u662f\u6ca1\u6709\u5fc5\u586b\u9879\u7684\u8bbe\u7f6e\uff0c\u5982\u679c\u8981\u8bbe\u7f6e\u7ec7\u68a6\u81ea\u5b9a\u4e49\u8868\u5355\u7684\u5fc5\u586b\u9879\uff0c\u9700\u8981\u8fdb\u884c\u989d\u5916\u7684\u4fee\u6539\uff01 \u6253\u5f00\/plus\/ […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[180,687],"class_list":["post-2829","post","type-post","status-publish","format-standard","hentry","category-web","tag-180","tag-687"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2829","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=2829"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2829\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}