* [task#135155,done,1h,0h] Adjust plug-in expiration logic.

This commit is contained in:
zhaixiaojian
2024-12-26 14:55:17 +08:00
committed by 张希全
parent f3b8622760
commit 04a35e6c67
+1 -1
View File
@@ -11,7 +11,7 @@ function ioncube_event_handler($err_code, $params)
/* Display plugin information and permission check */
if(!empty($params['license_file']) && preg_match('/([a-zA-Z]+)(\d+\.\d+)/', basename($params['license_file']), $matches))
{
$extensionInfo = !empty($matches[1]) ? $app->dao->select('*')->from(TABLE_EXTENSION)->where('code')->eq($matches[1])->fetch() : [];
$extensionInfo = !empty($matches[1]) ? $app->dao->select('*')->from(TABLE_EXTENSION)->where('code')->like( "%$matches[1]%")->fetch() : [];
$pluginName = !empty($extensionInfo->name) ? $extensionInfo->name : '';
$pluginNotice = !empty($pluginName) ? "<h3 style='margin: 30px 30px 0px;'><span class='icon icon-exclamation-sign warning-pale rounded-full icon-2x' style='margin-right:10px;'></span>“{$pluginName}”插件暂无授权</h3>" : '';