Initial commit

This commit is contained in:
root
2026-05-28 00:32:43 +08:00
commit d428ce96aa
555 changed files with 151902 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
protected static function init()
{
self::afterInsert(function ($row) {
if (!$row['{%order%}']) {
$pk = $row->getPk();
$row->getQuery()->where($pk, $row[$pk])->update(['{%order%}' => $row[$pk]]);
}
});
}