no message
This commit is contained in:
parent
036c2952e6
commit
6a91ea96a3
@ -108,16 +108,17 @@ public function receiveShadowrocketids(Request $oRequest)
|
|||||||
$sTitleSub = $aData["title_sub"] ?? '';
|
$sTitleSub = $aData["title_sub"] ?? '';
|
||||||
$aArticleTags = $aData["tags"] ?? [];
|
$aArticleTags = $aData["tags"] ?? [];
|
||||||
$sSlug = 'ssi'.date("Ymd");
|
$sSlug = 'ssi'.date("Ymd");
|
||||||
$sImgAuthor = "tg_xiuren_a";
|
// $sImgAuthor = "tg_xiuren_a";
|
||||||
|
$sSubKey = $_ENV['site_code_short'].'::ssi';
|
||||||
$i7like = $aData["7like"] ?? 0;
|
$i7like = $aData["7like"] ?? 0;
|
||||||
|
|
||||||
$oThumbNum = ArticleThumbNum::firstOrCreate(["author_code" => $sImgAuthor, "type" => "shadowrocketids"]);
|
$oThumbNum = ArticleThumbNum::firstOrCreate(["author_code" => $sSubKey, "type" => "shadowrocketids"]);
|
||||||
$iThumbNum = $oThumbNum->num;
|
$iThumbNum = $oThumbNum->num;
|
||||||
|
|
||||||
$sImagesApi = "https://".config("path.url_resource_base")."/api/images/get/url-by-num";
|
$sImagesApi = "https://".config("path.url_resource_base")."/api/images/get/url-by-subkey";
|
||||||
|
|
||||||
$aApiArg = [
|
$aApiArg = [
|
||||||
"sAuthorCode" => $sImgAuthor,
|
"sSubKey" => $sSubKey,
|
||||||
"iNum" => $iThumbNum+1,
|
"iNum" => $iThumbNum+1,
|
||||||
];
|
];
|
||||||
$sApiResult = HttpV2::make($sImagesApi, "post")->withToken()->setDataA($aApiArg)->send();
|
$sApiResult = HttpV2::make($sImagesApi, "post")->withToken()->setDataA($aApiArg)->send();
|
||||||
@ -149,7 +150,7 @@ public function receiveShadowrocketids(Request $oRequest)
|
|||||||
|
|
||||||
(new TagService())->syncArticleTagsByName($oArticle, $aArticleTags);
|
(new TagService())->syncArticleTagsByName($oArticle, $aArticleTags);
|
||||||
|
|
||||||
ArticleThumbNum::where("author_code", $sImgAuthor)->where("type", "shadowrocketids")->update(["num" => $sThumbNumTrue]);
|
ArticleThumbNum::where("author_code", $sSubKey)->where("type", "shadowrocketids")->update(["num" => $sThumbNumTrue]);
|
||||||
|
|
||||||
$sArticleUrl = config("app.url")."/shadowrocketids/".$sSlug;
|
$sArticleUrl = config("app.url")."/shadowrocketids/".$sSlug;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user