add message template

This commit is contained in:
xiaomlove
2025-06-19 13:13:26 +07:00
parent 75c1eb0664
commit a0ff441f03
85 changed files with 479 additions and 7 deletions

View File

@@ -69,8 +69,13 @@ class PluginStore extends Model
public function hasNewVersion(): bool
{
return $this->installed_version
$result = $this->installed_version
&& version_compare($this->version, $this->installed_version, '>');
do_log(sprintf(
"%s, installed_version: %s, version: %s, hasNew: %s",
$this->plugin_id, $this->installed_version, $this->version, $result
));
return $result;
}
public static function getInfo(string $id)