no message
This commit is contained in:
parent
b7e8148659
commit
65126f4e52
@ -42,7 +42,8 @@ private function findValidUrlBySubKey($sSubKey, $iNum, $oFlow)
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// $oQuery = ModelArticles::where("sAuthorCode", $sAuthorCode)->orderBy("id", "asc");
|
// $oQuery = ModelArticles::where("sAuthorCode", $sAuthorCode)->orderBy("id", "asc");
|
||||||
$oQuery = ModelArticles::where("aOpt", "like", $sSubKey)->orderBy("id", "asc");
|
// $oQuery = ModelArticles::where("aOpt", "like", $sSubKey)->orderBy("id", "asc");
|
||||||
|
$oQuery = ModelArticles::where("aOpt", "like", '%'.$sSubKey.'%')->orderBy("id", "asc"); // 要这样吗
|
||||||
$iTotal = $oQuery->count();
|
$iTotal = $oQuery->count();
|
||||||
|
|
||||||
if ($iTotal === 0) throw new \Exception("subkey:{$sSubKey} 旗下无任何记录");
|
if ($iTotal === 0) throw new \Exception("subkey:{$sSubKey} 旗下无任何记录");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user