[更新]调整编号生成规则

This commit is contained in:
Anyon 2020-12-09 17:54:47 +08:00
parent 5c8a338cd3
commit 9c3f828fc3
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class NewsItem extends Controller
protected function _form_filter(array &$data)
{
if (empty($data['code'])) {
$data['code'] = CodeExtend::uniqidNumber(15, 'A');
$data['code'] = CodeExtend::uniqidNumber(14, 'A');
}
if ($this->request->isGet()) {
$query = $this->app->db->name('DataNewsMark')->where(['deleted' => 0, 'status' => 1]);

View File

@ -136,7 +136,7 @@ class ShopGoods extends Controller
protected function _copy_form_filter(array &$data)
{
if ($this->request->isPost()) {
$data['code'] = CodeExtend::uniqidNumber(12, 'G');
$data['code'] = CodeExtend::uniqidNumber(14, 'G');
}
}
@ -150,7 +150,7 @@ class ShopGoods extends Controller
protected function _form_filter(array &$data)
{
if (empty($data['code'])) {
$data['code'] = CodeExtend::uniqidNumber(12, 'G');
$data['code'] = CodeExtend::uniqidNumber(14, 'G');
}
if ($this->request->isGet()) {
$data['mark'] = str2arr($data['mark'] ?? '');