mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !436 from 郭宇鹏/develop
commit
63e35e70d8
|
|
@ -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]]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue