<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016～2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

namespace app\wap\controller;

use service\CacheService;
use service\JsonService;
use service\SystemConfigService;
use think\Cookie;
use think\Request;
use think\Session;
use think\Url;
use app\wap\model\user\User;
use app\wap\model\user\MemberShip;

/**会员控制器
 * Class Member
 * @package app\wap\controller
 */
class Member extends AuthController
{

    /**
     * 白名单
     * */
    public static function WhiteList()
    {
        return [
            'member_recharge'
        ];
    }

    /**
     * 会员页
     * @return mixed
     */
    public function member_manage($type = 1, $bid = 0)
    {
        $this->assign(['type' => $type, 'bid' => $bid]);
        return $this->fetch();
    }

    /**
     * 会员购买页
     * @return mixed
     */
    public function member_recharge()
    {

        $servicePhone = SystemConfigService::get('site_phone') ?: '';
        $this->assign(['servicePhone' => $servicePhone]);
        return $this->fetch();
    }

}
