6
0
Fork 0
release
panliang 2022-06-02 14:35:44 +08:00
parent 5901c1285a
commit 2be899662a
2 changed files with 1 additions and 33 deletions

View File

@ -1,32 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSubMoneyToOrderProfits extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('order_profits', function (Blueprint $table) {
$table->decimal('sub_money', 12, 2)->default(0)->comment('下级收益')->after('money');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('order_profits', function (Blueprint $table) {
$table->dropColumn(['sub_money']);
});
}
}

View File

@ -434,7 +434,7 @@ class AdminPermissionSeeder extends Seeder
}
if (count($permission['children']) > 0) {
$_key = (isset($permission['curd']) && $permission['curd']) ? ($key ? $key.'.'.$slug : $slug) : $key;
$this->createPermissionData($permission['children'], $_key ?? $slug, $pper->id);
$this->createPermissionData($permission['children'], $_key ?: $slug, $pper->id);
}
}
}