|
@@ -339,7 +339,8 @@ class Shop extends Start_Controller {
|
|
$setting['token'] = 'https://oauth.aliexpress.com/token';
|
|
$setting['token'] = 'https://oauth.aliexpress.com/token';
|
|
if(!$_GET['code'])
|
|
if(!$_GET['code'])
|
|
{
|
|
{
|
|
- header('Location:'.$setting['code'].'?response_type=code&client_id='.$setting['appkey'].'&redirect_uri='.'http://'.$_SERVER['HTTP_HOST'].'/shop/code'.'&state='.$arg_array[0].'&view=web&sp=ae');exit;
|
|
|
|
|
|
+ header('Location:'.$setting['code'].'?response_type=code&force_auth=true&client_id='.$setting['appkey'].'&redirect_uri='.'http://'.$_SERVER['HTTP_HOST'].'/shop/code'.'&state='.$arg_array[0]);exit;
|
|
|
|
+ //header('Location:'.$setting['code'].'?response_type=code&client_id='.$setting['appkey'].'&redirect_uri='.'http://'.$_SERVER['HTTP_HOST'].'/shop/code'.'&state='.$arg_array[0].'&view=web&sp=ae');exit;
|
|
}
|
|
}
|
|
|
|
|
|
$code = $_GET['code'];
|
|
$code = $_GET['code'];
|