mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-04 06:12:48 +08:00
Merge branch 'master' of https://github.com/top-think/think
This commit is contained in:
@@ -158,7 +158,7 @@ class Url
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$domain = $domain . (strpos($domain, '.') ? '' : strstr($_SERVER['HTTP_HOST'], '.'));
|
||||
$domain .= strpos($domain, '.') ? '' : strstr($_SERVER['HTTP_HOST'], '.');
|
||||
}
|
||||
$domain = (self::isSsl() ? 'https://' : 'http://') . $domain;
|
||||
} else {
|
||||
|
||||
@@ -361,7 +361,7 @@ class Definition
|
||||
if (!$argument->isRequired()) {
|
||||
$element = '[' . $element . ']';
|
||||
} elseif ($argument->isArray()) {
|
||||
$element = $element . ' (' . $element . ')';
|
||||
$element .= ' (' . $element . ')';
|
||||
}
|
||||
|
||||
if ($argument->isArray()) {
|
||||
|
||||
@@ -668,7 +668,7 @@ abstract class Driver
|
||||
$count = count($val);
|
||||
$rule = isset($val[$count - 1]) ? (is_array($val[$count - 1]) ? strtoupper($val[$count - 1][0]) : strtoupper($val[$count - 1])) : '';
|
||||
if (in_array($rule, ['AND', 'OR', 'XOR'])) {
|
||||
$count = $count - 1;
|
||||
--$count;
|
||||
} else {
|
||||
$rule = 'AND';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user