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') ]); } }