Browse Source

yunqi test

zz 6 years ago
parent
commit
4a20c71989
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/Http/Middleware/ReadOauth.php

+ 4 - 1
app/Http/Middleware/ReadOauth.php

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