getUserInfo()->id) { $this->error("请登录后重试"); } $goods_id = $this->request->request('id'); $category = $this->request->request('category'); if(!$goods_id || !$category){ $this->error("参数错误"); } $channel_id = WebUserService::instance()->getUserInfo()->channel_id; $adminInfo = AdminService::instance()->getAdminConfigModel()->getAdminInfo($channel_id); $wxpayid = $adminInfo['wxpay_id']; $platformid = $adminInfo['platform_id']; $result = WxH5PayService::instance()->getPayUrl($goods_id, $category, $platformid, $wxpayid); return redirect($result->data); } }