no message

This commit is contained in:
hellcat committed 2026-07-28 20:28:37 +08:00
1 parent 8b582b46c9
commit 7d43e1030e
2 files changed
+50 -1

No files matched your search

@@ -8,6 +8,7 @@
use Illuminate\Support\Facades\Storage;
use App\Services\TomTool\Telegram\Slave as TeleSlave;
use App\Services\TomTool\Flow;
use App\Models\ArticleKeyAuthorMap;
class GetController extends Controller
{
@@ -41,9 +42,14 @@ public function urlbySubKey(Request $oRequest)
private function findValidUrlBySubKey($sSubKey, $iNum, $oFlow)
{
try {
$sAuthors = ArticleKeyAuthorMap::where("key", $sSubKey)->first()?->authors;
$aAuthors = json_decode($sAuthors, true);
$oQuery = ModelArticles::whereIn("sAuthorCode", $aAuthors)->->orderBy("id", "asc");
// $oQuery = ArticleKeyAuthorMap::where("key", $sSubKey)->first()?->authors;
// $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();
if ($iTotal === 0) throw new \Exception("subkey:{$sSubKey} 旗下无任何记录");