* Add upgrade log of instance module.

This commit is contained in:
zhaoke
2023-07-28 14:18:09 +08:00
parent 3a40de84db
commit 1ac7493bd3
5 changed files with 18 additions and 30 deletions
-23
View File
@@ -1,23 +0,0 @@
<?php
declare(strict_types=1);
class instanceZen extends instance
{
/**
* 获取最新一条app动态。
* Get the last article of an app.
*
* @param int $appID
* @access protected
* @return string
*/
protected function getLastArticle(int $appID): string
{
$appInfo = $this->store->getAppInfo($appID, true);
if(empty($appInfo)) return '';
$dynamicResult = $this->store->appDynamic($appInfo, 1, 1);
if(empty($dynamicResult) || empty($dynamicResult->articles)) return '';
return $dynamicResult->articles[0]->title;
}
}