Store
parent
611eb25ef8
commit
d783768e4c
|
|
@ -78,8 +78,7 @@ class StoreController extends AdminController
|
|||
->retainable()
|
||||
->autoUpload();
|
||||
|
||||
$form->display('created_at');
|
||||
$form->display('updated_at');
|
||||
$form->text('remarks');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class OrderPreController extends Controller
|
|||
$response = $app->app_code->getUnlimit($scene, [
|
||||
'page' => 'pages/welcome/index',
|
||||
'check_path' => false,
|
||||
'env_version' => app()->isProduction() ? 'release' : 'trial',
|
||||
'env_version' => app()->isProduction() ? 'release' : 'develop',
|
||||
'width' => $request->input('width', 200),
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ return [
|
|||
'upload' => [
|
||||
|
||||
// Disk in `config/filesystem.php`.
|
||||
'disk' => 'aliyun',
|
||||
'disk' => env('FILESYSTEM_DRIVER'),
|
||||
|
||||
// Image and file upload path under the disk above.
|
||||
'directory' => [
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class AddRoleToUserInfos extends Migration
|
|||
{
|
||||
Schema::table('user_infos', function (Blueprint $table) {
|
||||
$table->decimal('profit', 12, 2)->default(0)->comment('累计收益');
|
||||
// $table->tinyInteger('is_company')->default(0)->comment('是否员工');
|
||||
$table->tinyInteger('is_company')->default(0)->comment('是否员工');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,10 +17,21 @@ class CreateStoresTable extends Migration
|
|||
$table->id();
|
||||
$table->string('title')->comment('标题');
|
||||
$table->string('image')->comment('封面图');
|
||||
$table->string('remarks')->nullable()->comment('备注');
|
||||
$table->tinyInteger('status')->default(1)->comment('状态(1: 可用, 0: 不可用)');
|
||||
$table->unsignedInteger('sort')->default(1)->comment('排序, 正序');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('store_admin_users', function (Blueprint $table) {
|
||||
$table->unsignedInteger('store_id');
|
||||
$table->unsignedInteger('admin_user_id');
|
||||
});
|
||||
|
||||
Schema::create('store_products', function (Blueprint $table) {
|
||||
$table->unsignedInteger('store_id');
|
||||
$table->unsignedInteger('product_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -31,5 +42,7 @@ class CreateStoresTable extends Migration
|
|||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('stores');
|
||||
Schema::dropIfExists('store_admin_users');
|
||||
Schema::dropIfExists('store_products');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class AddSlugToVips extends Migration
|
|||
public function down()
|
||||
{
|
||||
Schema::table('vips', function (Blueprint $table) {
|
||||
$table->dropColumn(['slug', 'ratio']);
|
||||
$table->dropColumn(['slug', 'ratio', 'sort']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ return [
|
|||
'title' => '名称',
|
||||
'image' => '封面图',
|
||||
'sort' => '排序',
|
||||
'status' => '状态'
|
||||
'status' => '状态',
|
||||
'remarks' => '备注',
|
||||
],
|
||||
'options' => [
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue