6
0
Fork 0
jiqu-library-server/database/seeders/AppSettingSeeder.php

127 lines
4.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
namespace Database\Seeders;
use App\Models\Setting;
use Illuminate\Database\Seeder;
class AppSettingSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
foreach ([
'app_name' => [
'value' => '子春生',
'remarks'=>'应用名称',
],
'order_payment_expires_at' => [
'value' => 1800,
'remarks' => '订单支付过期时间(秒)',
],
'sale_after_expire_days' => [
'value' => 7,
'remarks' => '售后过期时间(天)',
],
'sign_click_points' => [
'value' => 5,
'remarks' => '签到送积分(分)',
],
'sign_click_continue' => [
'value' => 7,
'remarks' => '每连续N天签到额外奖励',
],
'sign_click_continue_points' => [
'value' => 10,
'remarks' => '每连续签到额外奖励(分)',
],
'article_help' => [
'value' => 1,
'remarks' => '帮助文章指定分类ID',
],
'article_agreement' => [
'value' => 2,
'remarks' => '协议文章指定分类ID',
],
'article_agreement' => [
'value' => 3,
'remarks' => '健康文章指定分类ID',
],
'article_about_us' => [
'value' => env('APP_URL', '').'/h5/articles/1',
'remarks' => '关于我们文章指定(链接)',
],
'article_user_promotion_agreement' => [
'value' => env('APP_URL', '').'/h5/articles/2',
'remarks' => '服务协议文章指定(链接)',
],
'article_user_hide_agreement' => [
'value' => env('APP_URL', '').'/h5/articles/3',
'remarks' => '隐私协议文章指定(链接)',
],
'kuaidi100_is_use' => [
'value' => true,
'remarks' => '快递100是否开启',
],
'kuaidi100_callback' => [
'value' => env('APP_URL', '').'/callback/kuaidi100',
'remarks' => '快递100回调地址链接',
],
'kuaidi100_app_key' => [
'value' => 'BTvgbjti4727',
'remarks' => '快递100APP_KEY',
],
'kuaidi100_customer' => [
'value' => '064109188EC4D85DA655DFC342144C6A',
'remarks' => '快递100CUSTOMER',
],
'kuaidi100_secret' => [
'value' => '1bd287d1981749f2a30ea74cac0ab99c',
'remarks' => '快递100SECRET',
],
'kuaidi100_userid' => [
'value' => 'ec0b6ec7729d4f22824cfd3c519dd45b',
'remarks' => '快递100USER_ID',
],
'mall_push_app_id' => [
'value' => 'iikmCoESID8bC1LhOPG1r8',
'remarks' => '个推APP_ID',
],
'mall_push_app_key' => [
'value' => 'JX33P0wP8bAQprI953hpN6',
'remarks' => '个推APP_KEY',
],
'mall_push_app_secret' => [
'value' => 'a3u3B6lXjq6fPTBlOGiOc9',
'remarks' => '个推APP_SECRET',
],
'mall_push_master_secret' => [
'value' => 'MAxmqomwo597xJeDuMCvx1',
'remarks' => '个推APP_MASTER_SECRET',
],
'invite_uri' => [
'value' => '',
'remarks' => '分享邀请地址(链接)',
],
'search_hot_keys' => [
'value' => '搜索热词,分词1,分词2,分词3',
'remarks'=>'搜索热词(半角逗号,隔开)',
],
] as $key => $values) {
Setting::firstOrCreate(['key' => $key], $values);
}
}
}