mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]调整编号生成规则
This commit is contained in:
parent
5c8a338cd3
commit
9c3f828fc3
@ -94,7 +94,7 @@ class NewsItem extends Controller
|
|||||||
protected function _form_filter(array &$data)
|
protected function _form_filter(array &$data)
|
||||||
{
|
{
|
||||||
if (empty($data['code'])) {
|
if (empty($data['code'])) {
|
||||||
$data['code'] = CodeExtend::uniqidNumber(15, 'A');
|
$data['code'] = CodeExtend::uniqidNumber(14, 'A');
|
||||||
}
|
}
|
||||||
if ($this->request->isGet()) {
|
if ($this->request->isGet()) {
|
||||||
$query = $this->app->db->name('DataNewsMark')->where(['deleted' => 0, 'status' => 1]);
|
$query = $this->app->db->name('DataNewsMark')->where(['deleted' => 0, 'status' => 1]);
|
||||||
|
@ -136,7 +136,7 @@ class ShopGoods extends Controller
|
|||||||
protected function _copy_form_filter(array &$data)
|
protected function _copy_form_filter(array &$data)
|
||||||
{
|
{
|
||||||
if ($this->request->isPost()) {
|
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)
|
protected function _form_filter(array &$data)
|
||||||
{
|
{
|
||||||
if (empty($data['code'])) {
|
if (empty($data['code'])) {
|
||||||
$data['code'] = CodeExtend::uniqidNumber(12, 'G');
|
$data['code'] = CodeExtend::uniqidNumber(14, 'G');
|
||||||
}
|
}
|
||||||
if ($this->request->isGet()) {
|
if ($this->request->isGet()) {
|
||||||
$data['mark'] = str2arr($data['mark'] ?? '');
|
$data['mark'] = str2arr($data['mark'] ?? '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user