search
Homephp教程PHP源码ShopNC QQ 互联修正,100010 错误处理

QQ 互联不允许 URL 有 Hash 存在,而 ShopNC 默认下是 ?act=toqq&op=g 这样的链接回调的,所以会导致设置失败,或者 100010 错误。

1. 建立 /shop/api_qq.php 文件
2. 修改 /shop/api/qq/comm/config.php 

$_SESSION["callback"] = SHOP_SITE_URL."/api_qq.php";

3. QQ 互联填写 http://域名/shop/api_qq.php

<?php
/**
 * 入口文件
 *
 * 统一入口,进行初始化信息
 *
 *
 * @copyright  Copyright (c) 2007-2013 ShopNC Inc. (http://www.cnnewyork.com)
 * @license    http://www.cnnewyork.com/
 * @link       http://www.cnnewyork.com/
 * @since      File available since Release v1.1
 */
define(&#39;BASE_PATH&#39;,str_replace(&#39;\\&#39;,&#39;/&#39;,dirname(__FILE__)));
require_once(dirname(dirname(__FILE__)).&#39;/global.php&#39;);
session_save_path(BASE_DATA_PATH.DS.&#39;session&#39;);
require_once(BASE_DATA_PATH.DS.&#39;config/config.ini.php&#39;);
if(!empty($config) && is_array($config)){
	$site_url = $config[&#39;shop_site_url&#39;];
	$version = $config[&#39;version&#39;];
	$setup_date = $config[&#39;setup_date&#39;];
	$gip = $config[&#39;gip&#39;];
	$dbtype = $config[&#39;dbdriver&#39;];
	$dbcharset = $config[&#39;db&#39;][1][&#39;dbcharset&#39;];
	$dbserver = $config[&#39;db&#39;][1][&#39;dbhost&#39;];
	$dbserver_port = $config[&#39;db&#39;][1][&#39;dbport&#39;];
	$dbname = $config[&#39;db&#39;][1][&#39;dbname&#39;];
	$db_pre = $config[&#39;tablepre&#39;];
	$dbuser = $config[&#39;db&#39;][1][&#39;dbuser&#39;];
	$dbpasswd = $config[&#39;db&#39;][1][&#39;dbpwd&#39;];
	$lang_type = $config[&#39;lang_type&#39;];
	$cookie_pre = $config[&#39;cookie_pre&#39;];
}

define(&#39;SHOP_SITE_URL&#39;,$site_url);
include &#39;api/qq/oauth/qq_callback.php&#39;;
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.