|
@@ -364,12 +364,13 @@ class Shop extends Start_Controller {
|
|
|
// curl_setopt($ch, CURLOPT_POSTFIELDS, substr($post_data,0,-1));
|
|
|
// $output = curl_exec($ch);
|
|
|
$output = json_decode($output,true);
|
|
|
+ echo "<pre>";
|
|
|
print_r($output);
|
|
|
+ die;
|
|
|
$this->shop->save(array('code'=>$output["access_token"],'codetime'=>substr($output["expire_time"],0,10)),$_GET['state']);
|
|
|
header('Location:http://'.$_SERVER['HTTP_HOST'].'/user/');exit;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
}
|