Skip to content

Commit ce649d8

Browse files
committed
删除无用函数,修改MD文件
1 parent c2e8a10 commit ce649d8

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ php artisan export:documents-seed
9898

9999
## 待解决已知问题
100100
1.BUG问题
101-
-
102-
101+
-
103102
2.体验优化问题
104-
- 目录跳转后开关闭合状态不存储问题
103+
-
105104
3.逻辑问题
106105
- 后台有空目录(目录下没有文章)前台不展示
107106
4.Dcatadmin文档问题

app/Admin/Controllers/ArticleController.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -187,25 +187,4 @@ function() {
187187
});
188188
}
189189

190-
protected function numberToChinese($number)
191-
{
192-
$numbers = ['', '', '', '', '', '', '', '', '', ''];
193-
$units = ['', '', '', '', '', '十万', '百万', '千万', '亿'];
194-
$chars = [];
195-
$length = strlen($number);
196-
for ($i = 0; $i < $length; $i++) {
197-
$n = $number[$length - $i - 1];
198-
$chars[] = $units[$i];
199-
$chars[] = $numbers[$n];
200-
}
201-
$chars = array_reverse($chars);
202-
$chars = implode('', $chars);
203-
$chars = preg_replace('/零[十百千]/u', '', $chars);
204-
$chars = preg_replace('/零+/u', '', $chars);
205-
$chars = rtrim($chars, '');
206-
$chars = preg_replace('/零$/u', '', $chars);
207-
$chars = str_replace('一十', '', $chars);
208-
return $chars;
209-
}
210-
211190
}

0 commit comments

Comments
 (0)