config
parent
39f9724585
commit
86d6ac65d9
|
|
@ -3,6 +3,8 @@
|
||||||
## Require
|
## Require
|
||||||
|
|
||||||
- php >= 8.1
|
- php >= 8.1
|
||||||
|
- php 函数: `putenv`, `proc_open`, `symlink`
|
||||||
|
- php 扩展: `fileinfo`
|
||||||
|
|
||||||
## Step
|
## Step
|
||||||
|
|
||||||
|
|
@ -10,6 +12,7 @@
|
||||||
- `cp .env.example .env`, 并修改配置文件
|
- `cp .env.example .env`, 并修改配置文件
|
||||||
- `php artisan migrate --seed`
|
- `php artisan migrate --seed`
|
||||||
- `php artisan storage:link`
|
- `php artisan storage:link`
|
||||||
|
- `bootstrap/cache`, `storage` 目录 需要写入权限
|
||||||
|
|
||||||
## 定时任务
|
## 定时任务
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ return [
|
||||||
// API 相关配置
|
// API 相关配置
|
||||||
'api' => [
|
'api' => [
|
||||||
// API 访问域名
|
// API 访问域名
|
||||||
'domain' => env('ENDPOINT_API_DOMAIN'),
|
'domain' => env('APP_URL'),
|
||||||
|
|
||||||
// API 访问路径
|
// API 访问路径
|
||||||
'path' => env('ENDPOINT_API_PATH', 'api'),
|
'path' => 'api',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,14 @@ class AdAddressSeeder extends Seeder
|
||||||
['image' => 'https://zcs-test.oss-cn-chengdu.aliyuncs.com/ac/not_vip.jpg', 'sort' => 1, 'jump_type' => 0, 'is_show' => 1 , 'name' => 1]
|
['image' => 'https://zcs-test.oss-cn-chengdu.aliyuncs.com/ac/not_vip.jpg', 'sort' => 1, 'jump_type' => 0, 'is_show' => 1 , 'name' => 1]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
'wechat_mini_store_online' => [
|
||||||
|
'name' => '【小程序】线上预约店',
|
||||||
|
'dimensions' => '640*320',
|
||||||
|
'is_show' => true,
|
||||||
|
'ads' => [
|
||||||
|
['image' => 'https://via.placeholder.com/640x320.png', 'sort' => 1, 'jump_type' => 0, 'is_show' => 1 , 'name' => 1]
|
||||||
|
]
|
||||||
|
]
|
||||||
] as $key => $values) {
|
] as $key => $values) {
|
||||||
$address = AdAddress::firstOrCreate(['key' => $key], Arr::except($values, ['ads']));
|
$address = AdAddress::firstOrCreate(['key' => $key], Arr::except($values, ['ads']));
|
||||||
if (isset($values['ads'])) {
|
if (isset($values['ads'])) {
|
||||||
|
|
|
||||||
|
|
@ -335,22 +335,22 @@ class AdminMenuSeeder extends Seeder
|
||||||
'uri' => 'settings',
|
'uri' => 'settings',
|
||||||
],
|
],
|
||||||
['title' => '标签管理', 'icon' => '', 'uri' => 'tags'],
|
['title' => '标签管理', 'icon' => '', 'uri' => 'tags'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'title' => '抽奖管理',
|
||||||
|
'icon' => 'fa fa-diamond',
|
||||||
|
'uri' => '',
|
||||||
|
'children' =>[
|
||||||
[
|
[
|
||||||
'title' => '抽奖管理',
|
'title' => '抽奖活动',
|
||||||
'icon' => 'fa fa-diamond',
|
'icon' => '',
|
||||||
'uri' => '',
|
'uri' => 'draw-activities',
|
||||||
'children' =>[
|
],
|
||||||
[
|
[
|
||||||
'title' => '抽奖活动',
|
'title' => '奖品池',
|
||||||
'icon' => '',
|
'icon' => '',
|
||||||
'uri' => 'draw-activities',
|
'uri' => 'draw-prizes',
|
||||||
],
|
|
||||||
[
|
|
||||||
'title' => '奖品池',
|
|
||||||
'icon' => '',
|
|
||||||
'uri' => 'draw-prizes',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue