<?php
/**
 * Created by PhpStorm.
 * User: wangzhiqiang
 * Date: 2019/4/24
 * Time: 9:36
 */
namespace App\Http\Controllers;

use App\Traits\CommunityTrait;

class ConfigController extends Controller
{
    use CommunityTrait;
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }
    public function index()
    {
        $reportCategory = [
            [
                'id' => 0,
                'name' => '广告内容',
            ],
            [
                'id' => 1,
                'name' => '搬运抄袭',
            ],
            [
                'id' => 2,
                'name' => '不友善内容',
            ],
            [
                'id' => 3,
                'name' => '造谣,伪科学',
            ],
            [
                'id' => 4,
                'name' => '虚假互动数据',
            ],
            [
                'id' => 5,
                'name' => '色情低俗',
            ],
            [
                'id' => 6,
                'name' => '违法违规',
            ],
            [
                'id' => 7,
                'name' => '其它',
            ]
        ];
        $data = [
            //商品类型
            'order_expired_time' => config('customer.order_expired_time'),
            'virus_url' => config('customer.VIRUS_URL'),
            'virus_app_id' => config('customer.VIRUS_APP_ID'),
            'virus_app_secret' => config('customer.VIRUS_APP_SECRET'),
            'virus' => $this->getAllBehavior(),
            'find_friend_img' => config('customer.find_friend_img'),
            'suggest_img' => config('customer.suggest_img'),
            'share_post_bean' => (int) config('customer.share_post_bean'),
            'share_invite_bean' => (int) config('customer.share_invite_bean'),
            'report_category' => $reportCategory,
        ];
        return $this->jsonSuccess($data, '成功');
    }

}