Pre Merge pull request !436 from 郭宇鹏/develop

pull/436/MERGE
郭宇鹏 2024-01-02 14:18:31 +00:00 committed by Gitee
commit 63e35e70d8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,9 @@
protected static function init()
{
self::afterInsert(function ($row) {
$pk = $row->getPk();
$row->getQuery()->where($pk, $row[$pk])->update(['{%order%}' => $row[$pk]]);
if (!isset($row['{%order%}'])){
$pk = $row->getPk();
$row->getQuery()->where($pk, $row[$pk])->update(['{%order%}' => $row[$pk]]);
}
});
}

View File

@ -17,7 +17,9 @@
<div id="mainbody">
<div class="container">
<div class="text-center">
<h1>{$site.name|htmlentities}</h1>
<h1>
测试git远程推送00222oooo898989
</h1>
<a href="{:url('index/user/index', '', false, true)}">{:__('Member center')}</a>
</div>
</div>