|
@@ -771,7 +771,7 @@ class ReadOauth
|
|
|
//unset($param['from_type']);
|
|
|
$other_str = 'r=1';
|
|
|
if($param){
|
|
|
- $other_str = http_build_query($param);
|
|
|
+ $other_str = http_build_query($param).'&'.$other_str;
|
|
|
}
|
|
|
//$uri = $request->input('_url');
|
|
|
$bid = $request->get('bid');
|
|
@@ -839,6 +839,7 @@ class ReadOauth
|
|
|
return '';
|
|
|
};
|
|
|
Log::info('88888888888888888888888888');
|
|
|
+ Log::info($redirect_bids);
|
|
|
$redirect_book_info = BookConfigService::getBookById($redirect_bid);
|
|
|
if ($redirect_book_info) {
|
|
|
$redirect = $this->getBookReaderUrl($redirect_bid,$channel_id);
|
|
@@ -908,6 +909,8 @@ class ReadOauth
|
|
|
private function getBookReaderUrl($bid,$channel_id){
|
|
|
$redirect_book_info = BookConfigService::getBookById($bid);
|
|
|
if ($redirect_book_info) {
|
|
|
+ Log::info('getBookReaderUrl');
|
|
|
+ Log::info($redirect_book_info);
|
|
|
$redirect = sprintf(
|
|
|
'https://site%s.iycdm.com/reader?bid=%s&cid=%s',
|
|
|
encodeDistributionChannelId($channel_id),
|