You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zhishifufei_php/application/wap/controller/Member.php

74 lines
2.2 KiB

<?php
// +----------------------------------------------------------------------
// | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2020 https://www.tczxkj.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权
// +----------------------------------------------------------------------
// | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397
// +----------------------------------------------------------------------
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',
'member_recharge_api'
];
}
/**
* 会员页
* @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();
}
public function member_recharge_api()
{
return JsonService::successful([
'siteName' => SystemConfigService::get('site_name'),
'isAlipay' => SystemConfigService::get('alipay_switch') ? true : false,
'isWechat' => $this->isWechat,
'wxpayH5' => SystemConfigService::get('h5_wechat_payment_switch') ? true : false,
'is_share_display_switch' => SystemConfigService::get('share_display_switch')
]);
}
}