<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/9/5
 * Time: 11:13
 */

return [
    //'level',礼包专区  新人专区
    //'default',百货专区
    //'discount',特惠专区
    //'point',积分区
    //’member'，省钱卡专区

    'type_name' => [
        'level' => '礼包商城',
        'default' => '普通商城',
        'point' => '积分商城',
    ],



    'enable_tree_category' => [
        'default',
    ],

    'category_use_recommend_types' => [
        'default',
    ],
    'use_is_new_types' => [
        'default',
    ],


   'enable_category_icon' => ['default'],

    'use_recommend_types' => ['default'],

    'product_use_score_types' => [
    ],
    'product_use_score_ignore_pay_password_types' => ['point'],

    'product' => [
        'use_score_percent' => [
            'point' => 1,
        ],
//        'money_score_rate' => [
//            'point' => 9090.909,
//        ],
        'use_stock_img' => true,
    ],
    'use_stock_types' => [
        'default', 'point',  'level'
    ],

//    'extend' => [
//        'product_field' => 'Modules\Project\Services\MallProductCustomFormExtendService',
//        //'stock_field' => 'Modules\Project\Services\MallProductStockReplaceService',
//        //'product_stock_form_special_check' => 'Modules\Project\Services\MallProductStockFormSpecialCheckService',
//        'product_grid' => 'Modules\Project\Services\MallProductGridExtendService',
//        //'product_update_hook' =>'Modules\Project\Services\MallProductUpdateExtendService',
////        'cart_item_ext' => 'Modules\Project\Services\MallCartItemExtentService',
////        'add_product_to_cart' => 'Modules\Project\Services\AddProductToCartExtendService',
////        //'stock_field_append' => 'Modules\Project\Services\MallProductStockFormFieldAppendService',
////        //'checkout_validate' =>  'Modules\Project\Services\CheckoutValidateExtentService',
////        'refund_check' => 'Modules\Project\Services\MallRefundCheckService',
//        'buy_price' => 'Modules\Project\Services\MallProductBuyPriceService',
////        'buy_price' => 'Modules\Project\Services\MallProductBuyPriceService',
////        'order_preview_data' => 'Modules\Project\Services\OrderPreviewDataService',
//       // 'create_order' => 'Modules\Project\Services\CreateOrderService',
//        'buy_check_all' => 'Modules\Project\Services\BuyCheckAllService',
//        'freight' => 'Modules\Project\Services\CustomFreightService',
//
//    ],

//    'contracts' => [
//        'SMG\Mall\Contracts\MallOrderAdmin' => 'Modules\Project\Services\MallOrderAdminExtendService',
//        'SMG\Mall\Contracts\OrderStatus' => 'SMG\Mall\Service\OrderStatusService',
//        'SMG\Mall\Contracts\StockChange' => 'SMG\Mall\Service\StockChangeService',
//    ],
//
//    'order' => [
//        'auto_shipped_days' => 7,
//        'before_create' => 'Modules\Project\Services\OrderCreateBeforeService',
//        'not_auto_close_types' => ['level'],
//        //'create_order' => 'Modules\Project\Services\CreateOrderService',
//        //'refund_call' =>'Modules\Project\Services\MallOrderAfterRefundService',
//    ],
//
//    'append_fillable' => [
//        'products' => ['origin_id','store_id','shop_price','real_cost','cost_price','profit_rate','origin','product_type'],
//        'product_skus' => ['origin_id','store_id','shop_price','real_cost','cost_price','profit_rate','origin', 'spec_key','product_type'],
//        'orders' => ['mld_order_info','mld_order_sn','mld_master_order_sn','mld_goods_ids','mld_store_id',
//            'mld_order_freight','mld_order_total', 'mld_order_items', 'mld_order_type', 'order_type'],
//        'order_items' => ['mld_order_sn','mld_master_order_sn','mld_goods_id','mld_store_id', 'mld_order_freight',],
//    ],
//    'append_casts' => [
//        'products' => ['origin' => 'json'],
//        'product_skus' => ['origin' => 'json'],
//        'orders' => ['mld_order_info' => 'json', 'mld_order_items' => 'array'],
//    ],
//
//    'enable_partial_delivery' => ['default'],
//
//    'use_coupon_types' => ['default', 'member', 'level'],
//    'coupon' => [
//        'rule_show_type_name' => true,
//        'rules' => ['total', 'product'],
//        'disable_show_display_time_types' => ['default', 'member', 'level'],
//    ],
////    'flash_sale' => [
////        'save_origin_info_fields' => [
////            'default' => ['']
////        ]
////    ]
//
//    'batch_operation' => [
//        'product' => 'Modules\Project\Services\MallProductUpdateExtendService',
//    ],
];
