Repair ShopNC prompting 100010 error when using QQ Internet, shopnc100010_PHP tutorial

WBOY
Release: 2016-07-12 09:05:28
Original
876 people have browsed it

修复ShopNC使用QQ 互联时提示100010 错误,shopnc100010

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

shop/api_qq.php

<&#63;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('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
require_once(dirname(dirname(__FILE__)).'/global.php');
session_save_path(BASE_DATA_PATH.DS.'session');
require_once(BASE_DATA_PATH.DS.'config/config.ini.php');
if(!empty($config) && is_array($config)){
  $site_url = $config['shop_site_url'];
  $version = $config['version'];
  $setup_date = $config['setup_date'];
  $gip = $config['gip'];
  $dbtype = $config['dbdriver'];
  $dbcharset = $config['db'][1]['dbcharset'];
  $dbserver = $config['db'][1]['dbhost'];
  $dbserver_port = $config['db'][1]['dbport'];
  $dbname = $config['db'][1]['dbname'];
  $db_pre = $config['tablepre'];
  $dbuser = $config['db'][1]['dbuser'];
  $dbpasswd = $config['db'][1]['dbpwd'];
  $lang_type = $config['lang_type'];
  $cookie_pre = $config['cookie_pre'];
}
 
define('SHOP_SITE_URL',$site_url);
include 'api/qq/oauth/qq_callback.php';
Copy after login

另附上,其他程序使用QQ互联出现100010错误的解决方法

方法/步骤

1、首先,进入QQ互联官网,这个在百度搜索就能找到。进去之后找到右上角的“登录”,可以用QQ进行快捷登录;

2、登录之后,进入“管理中心”,找到“创建应用”,因为我们是对自己的网站进行互联,所以选择网站类型,如下图所示。当然,如果你要与移动应用互联,就选择移动应用;

3、选择好之后,接下来就是要填写网站的信息了。里面还需要验证网站,这里就不赘述了。重要的是回调地址的填写。

4、当你回调地址填写好,网站配置好QQ互联之后,进行登录的时候,可能出现redirect uri is illegal(100010)的错误,此时,不要关闭窗口,在错误窗口的地址栏找到如下图所示的网址;

5、也就是redirect_uri后面的一个网址,将这一网址重新填至上面所说的回调地址栏里。再用QQ进行登录,就可以成功了。

注意事项

正如网上很多人所说需要回调地址一致。这里告诉您什么是回调地址,怎么让它们一致。

以上就是QQ互联时登录报错redirect uri is illegal(100010)的解决办法介绍,希望能对大家有所帮助!

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1069355.htmlTechArticle修复ShopNC使用QQ 互联时提示100010 错误,shopnc100010 QQ 互联不允许 URL 有 Hash 存在,而 ShopNC 默认下是 act=toqq 3. QQ 互联填写 http://域名/shop/api...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template