|
@@ -339,7 +339,7 @@ class Shop extends Start_Controller {
|
|
$tokenUrl = 'https://api.aliexpress.com/rest/token';
|
|
$tokenUrl = 'https://api.aliexpress.com/rest/token';
|
|
$postData = [
|
|
$postData = [
|
|
'grant_type' => 'authorization_code',
|
|
'grant_type' => 'authorization_code',
|
|
- 'client_id' => $$setting['appkey'],
|
|
|
|
|
|
+ 'client_id' => $setting['appkey'],
|
|
'client_secret' => $setting['secret'],
|
|
'client_secret' => $setting['secret'],
|
|
'code' => $code,
|
|
'code' => $code,
|
|
'redirect_uri' => 'http://'.$_SERVER['HTTP_HOST'].'/shop/code'
|
|
'redirect_uri' => 'http://'.$_SERVER['HTTP_HOST'].'/shop/code'
|