Articles posted by Dreamweaving are set to unreviewed status

First of all, browse the previous chapter Dream Weaving PHP to realize the publishing function of Dream Weaving

Modify the statement of the release dream weaving to:

$sqlAdd = "INSERT INTO dede_addonarticle(aid, typeid, body, redirecturl, templet, userip) VALUES ('$dataid','$typeid','$content','','','127.0.0.1')";
$sqlAdd2 = "INSERT INTO dede_arctiny (id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) VALUES ('$dataid', '$typeid', '-1', '0', '1', '$date', '$date', '1')";
$sqlAdd3 = "INSERT INTO dede_archives (id, typeid, typeid2, sortrank, flag, ismake, channel, arcrank, click, money, title, shorttitle, color, writer, source, litpic, pubdate, senddate, mid, keywords, lastpost, scores, goodpost, badpost, voteid, notpost, description, filename, dutyadmin, tackid, mtype, weight) VALUES ('$dataid', '$typeid', '0', '$date', NULL, '1', '1', '0', '$click', '0', '$title', '', '', '$writer', '未知', '', '$date', '$date', '1', '$title', '0', '0', '0', '0', '', '0', '$description', '', '1', '0', '0', '0')";
$sqlUpdata = "Update dede_archives set arcrank =-1,ismake=0,dutyadmin =1,tackid=0 WHERE id=$dataid";

 At this time, the articles published to Weaving Dreams are set to unreviewed status

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327028686&siteId=291194637