细节优化

feat/task1-c-wallet
gongfuxiang 2022-02-05 15:48:08 +08:00
parent 225b15d750
commit 40e99f1e68
5 changed files with 11 additions and 4 deletions

View File

@ -250,7 +250,7 @@ class AppMiniService
if($pos !== false) if($pos !== false)
{ {
$info = pathinfo($file); $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; continue;
} }

View File

@ -1607,7 +1607,7 @@ class OrderService
// 生成二维码参数 // 生成二维码参数
$params = [ $params = [
'content' => $data[$v], 'content' => $data[$v],
'path' => DS.'download'.DS.'order'.DS.'extraction_ode'.DS, 'path' => DS.'download'.DS.'order'.DS.'extraction_code'.DS,
'filename' => $v.'.png', 'filename' => $v.'.png',
]; ];

View File

@ -1181,7 +1181,7 @@ php;
if($pos !== false) if($pos !== false)
{ {
$info = pathinfo($file); $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; continue;
} }

View File

@ -195,7 +195,7 @@ class ThemeService
if($pos !== false) if($pos !== false)
{ {
$info = pathinfo($file); $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; continue;
} }

View File

@ -447,6 +447,13 @@ class UserAddressService
'key_name' => 'name', 'key_name' => 'name',
'error_msg' => '姓名不能为空', 'error_msg' => '姓名不能为空',
], ],
[
'checked_type' => 'length',
'key_name' => 'alias',
'checked_data' => '16',
'is_checked' => 1,
'error_msg' => '别名最多16个字符',
],
[ [
'checked_type' => 'empty', 'checked_type' => 'empty',
'key_name' => 'tel', 'key_name' => 'tel',