微信-app+支付 开关控制此处 return request()->input('type') != 5 && request()->input('type') != 8 // 支付宝登录不显示 && app('plugins')->isEnabled('converge_pay') && \Setting::get('plugin.convergePay_set.wechat.wechat_status') && $this->appEnable() && $this->cpsEnable(); } public function getWeight() { return 999; } // App 打包 protected function appEnable() { $app_enable = true; if (request()->input('type') == 7 && !\Setting::get('plugin.convergePay_set.wechat.wechat_card_status')) { $app_enable = false; } return $app_enable; } // 聚合CPS protected function cpsEnable() { $cps_enable = true; if (request()->input('type') == 15 && !\Setting::get('plugin.convergePay_set.wechat.wechat_card_status')) { $cps_enable = false; } return $cps_enable; } }