diff --git a/dedebiz b/dedebiz index 4661828b..32bbe0fb 100755 --- a/dedebiz +++ b/dedebiz @@ -480,6 +480,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { $dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); DedeCli::error("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr)); } + InsertTags("天涯{$arcID},穆云智能", $arcID); } DedeCli::write("成功生成所有测试数据"); } else if(count($argv) > 1 && ($argv[1] =="pwd")){ diff --git a/src/system/database/dedesqlite.class.php b/src/system/database/dedesqlite.class.php index 86028488..95ff9c0e 100755 --- a/src/system/database/dedesqlite.class.php +++ b/src/system/database/dedesqlite.class.php @@ -494,6 +494,7 @@ class DedeSqlite $this->queryString = preg_replace("/Show Tables/i", "SELECT name FROM sqlite_master WHERE type = \"table\"", $this->queryString); $this->queryString = str_replace("\'", "\"", $this->queryString); $this->queryString = str_replace('\t\n', "", $this->queryString); + $this->queryString = str_ireplace('rand', 'RANDOM', $this->queryString); //var_dump($this->queryString); } function SetSql($sql) diff --git a/src/system/taglib/channel/img.lib.php b/src/system/taglib/channel/img.lib.php index 62404dca..4f24c12f 100755 --- a/src/system/taglib/channel/img.lib.php +++ b/src/system/taglib/channel/img.lib.php @@ -16,7 +16,7 @@ function ch_img($fvalue, &$arcTag, &$refObj, $fname = '') $dtp->LoadSource($fvalue); if (!is_array($dtp->CTags)) { $dtp->Clear(); - return "无图片信息"; + return $fvalue; } $pagestyle = $cfg_album_style; $maxwidth = $cfg_album_width;