15m44c 工单提交TICKET_MAX_IMAGES未定义根治: 生产OPcache缓存旧版ticket.php致define未执行, 加defined()兜底防任何加载顺序坑. 工单提交报错'Undefined constant'根治
This commit is contained in:
+2
-2
@@ -151,8 +151,8 @@ function getServiceProviderRole($playerName) {
|
||||
}
|
||||
}
|
||||
|
||||
// ★ 单张工单附件图上限
|
||||
define('TICKET_MAX_IMAGES', 3);
|
||||
// ★ 单张工单附件图上限(15m44c 兜底: 用 defined() 防任何加载顺序坑致 Undefined constant)
|
||||
if (!defined('TICKET_MAX_IMAGES')) define('TICKET_MAX_IMAGES', 3);
|
||||
|
||||
/**
|
||||
* 读取并校验请求里的 images 参数(数组或 JSON 字符串均可),返回 URL 列表。
|
||||
|
||||
Reference in New Issue
Block a user