fix offers.php + update support enum

This commit is contained in:
xiaomlove
2021-06-04 10:26:34 +08:00
parent cf4479ebea
commit 96f78f6dd8
6 changed files with 501 additions and 43 deletions
+3 -1
View File
@@ -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
+4
View File
@@ -144,6 +144,10 @@ if ($currentStep == 5) {
['label' => '确认密码', 'name' => 'confirm_password', 'value' => $_POST['confirm_password'] ?? ''],
];
}
if (!empty($error)) {
$pass = false;
}
?>
<!doctype html>
+4
View File
@@ -188,6 +188,10 @@ if ($currentStep == 4) {
break;
}
}
if (!empty($error)) {
$pass = false;
}
?>
<!doctype html>