weizong song 1 day ago
parent e54f817301
commit 8a3b1c61aa

@ -427,6 +427,11 @@ class DoorRepository
public function checkRepeatDoor($mobile, $appointmentConfig, $end_time, &$out)
{
foreach ($appointmentConfig as $value) {
// 车牌等场地不需要门禁,未配置门禁时无需做重复授权校验。
if (empty($value->door)) {
continue;
}
$door = is_array($value->door) ? $value->door : json_decode($value->door, true);
if (!is_array($door) || empty($door['doorName'])) {
$out = "场地【{$value->name}】的门禁配置无效";

@ -11,6 +11,10 @@ return new class extends Migration
*/
public function up()
{
if (Schema::hasTable('jobs')) {
return;
}
Schema::create('jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('queue')->index();
@ -27,6 +31,7 @@ return new class extends Migration
*/
public function down()
{
Schema::dropIfExists('jobs');
// The production database may already have this table from an older,
// untracked migration. Do not remove an existing queue table on rollback.
}
};

Loading…
Cancel
Save