mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
fix offers.php + update support enum
This commit is contained in:
@@ -218,7 +218,9 @@ class DB
|
||||
$capsule->addConnection($config, $connectionName);
|
||||
$capsule->setAsGlobal();
|
||||
$capsule->bootEloquent();
|
||||
$capsule->getConnection($connectionName)->enableQueryLog();
|
||||
$connection = $capsule->getConnection($connectionName);
|
||||
$connection->enableQueryLog();
|
||||
$connection->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
|
||||
}
|
||||
|
||||
public static function schema(): \Illuminate\Database\Schema\Builder
|
||||
|
||||
@@ -144,6 +144,10 @@ if ($currentStep == 5) {
|
||||
['label' => '确认密码', 'name' => 'confirm_password', 'value' => $_POST['confirm_password'] ?? ''],
|
||||
];
|
||||
}
|
||||
|
||||
if (!empty($error)) {
|
||||
$pass = false;
|
||||
}
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
|
||||
@@ -188,6 +188,10 @@ if ($currentStep == 4) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($error)) {
|
||||
$pass = false;
|
||||
}
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
|
||||
Reference in New Issue
Block a user