提交 40e99f1e 编写于 作者: G gongfuxiang

细节优化

上级 225b15d7
......@@ -250,7 +250,7 @@ class AppMiniService
if($pos !== false)
{
$info = pathinfo($file);
if(isset($info['extension']) && in_array($info['extension'], self::$exclude_ext))
if(isset($info['extension']) && in_array(strtolower($info['extension']), self::$exclude_ext))
{
continue;
}
......
......@@ -1607,7 +1607,7 @@ class OrderService
// 生成二维码参数
$params = [
'content' => $data[$v],
'path' => DS.'download'.DS.'order'.DS.'extraction_ode'.DS,
'path' => DS.'download'.DS.'order'.DS.'extraction_code'.DS,
'filename' => $v.'.png',
];
......
......@@ -1181,7 +1181,7 @@ php;
if($pos !== false)
{
$info = pathinfo($file);
if(isset($info['extension']) && in_array($info['extension'], self::$exclude_ext))
if(isset($info['extension']) && in_array(strtolower($info['extension']), self::$exclude_ext))
{
continue;
}
......
......@@ -195,7 +195,7 @@ class ThemeService
if($pos !== false)
{
$info = pathinfo($file);
if(isset($info['extension']) && in_array($info['extension'], self::$exclude_ext))
if(isset($info['extension']) && in_array(strtolower($info['extension']), self::$exclude_ext))
{
continue;
}
......
......@@ -447,6 +447,13 @@ class UserAddressService
'key_name' => 'name',
'error_msg' => '姓名不能为空',
],
[
'checked_type' => 'length',
'key_name' => 'alias',
'checked_data' => '16',
'is_checked' => 1,
'error_msg' => '别名最多16个字符',
],
[
'checked_type' => 'empty',
'key_name' => 'tel',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册