修正 Proxied、 SSL/TLS 设为 Flexible、开启 Always Use HTTPS
This commit is contained in:
@@ -15,6 +15,21 @@ class Number extends Model
|
||||
{
|
||||
protected $name = 'split_number';
|
||||
|
||||
protected static function init(): void
|
||||
{
|
||||
self::beforeInsert(function (self $row): void {
|
||||
if ((int) ($row['weigh'] ?? 0) > 0) {
|
||||
return;
|
||||
}
|
||||
$linkId = (int) ($row['split_link_id'] ?? 0);
|
||||
if ($linkId <= 0) {
|
||||
return;
|
||||
}
|
||||
$maxWeigh = (int) self::where('split_link_id', $linkId)->max('weigh');
|
||||
$row->setAttr('weigh', $maxWeigh + 1);
|
||||
});
|
||||
}
|
||||
|
||||
protected $autoWriteTimestamp = 'integer';
|
||||
|
||||
protected $createTime = 'createtime';
|
||||
|
||||
@@ -163,6 +163,9 @@ class Ticket extends Model
|
||||
if ($status === 'success') {
|
||||
return sprintf((string) __('Sync display success'), $online);
|
||||
}
|
||||
if ($status === 'pending') {
|
||||
return (string) __('Sync display pending');
|
||||
}
|
||||
return (string) __('Sync display error');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user