<?php

namespace app\api\controller;

use app\common\service\ConfigService;

class MerchantConfig extends BaseShopController
{
    public array $notNeedLogin = ['list'];

    public function list() {
        return show(1,'读取成功', [
            'name'=>ConfigService::get('merchant', 'name', '商圈'),
            'images'=>ConfigService::get('merchant', 'images', ''),
            'notice'=>ConfigService::get('merchant', 'notice', ''),
            'index_show'=>ConfigService::get('merchant', 'index_show', '热门'),

            'apply_status'=>ConfigService::get('merchant', 'apply_status', 1),
            'apply_back_coin'=>ConfigService::get('merchant', 'apply_back_coin', 1),
            'coin_rate'=>ConfigService::get('merchant', 'coin_rate', 100),
            'vip_expired_auto_down'=>ConfigService::get('merchant', 'vip_expired_auto_down', 1),
            'require_phone'=>ConfigService::get('merchant', 'require_phone', 1),
            'require_business_license'=>ConfigService::get('merchant', 'require_business_license', 1),
            'require_wechat'=>ConfigService::get('merchant', 'require_wechat', 1),
        ]);
    }
}