Revert "改名"
This reverts commit fdf58326
This commit is contained in:
@@ -121,7 +121,7 @@ class Model extends Base\Model
|
||||
/** @var static $select */
|
||||
$select = static::query()->where($condition)->first();
|
||||
if (empty($select)) {
|
||||
$select = duplicate(static::class);
|
||||
$select = new static();
|
||||
$select->attributes = $attributes;
|
||||
$select->setIsNowExample(true);
|
||||
if (!$select->save()) {
|
||||
|
||||
Reference in New Issue
Block a user