|
@@ -142,7 +142,7 @@ class ReadOauth
|
|
//云栖测试
|
|
//云栖测试
|
|
$qy_test_url = $this->yqTest($request,$uid_cookie,$distribution_channel_id);
|
|
$qy_test_url = $this->yqTest($request,$uid_cookie,$distribution_channel_id);
|
|
if($qy_test_url){
|
|
if($qy_test_url){
|
|
- Log::info('url is: '.$qy_test_url);
|
|
|
|
|
|
+ //Log::info('url is: '.$qy_test_url);
|
|
return redirect()->to($qy_test_url);
|
|
return redirect()->to($qy_test_url);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -826,7 +826,7 @@ class ReadOauth
|
|
BookUserService::updateUser($uid, $data);
|
|
BookUserService::updateUser($uid, $data);
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|
|
- Log::info('7777777777777777777777777');
|
|
|
|
|
|
+ //Log::info('7777777777777777777777777');
|
|
//书不在在测试列表中
|
|
//书不在在测试列表中
|
|
//获取随机获取一本书,获取不到则返回
|
|
//获取随机获取一本书,获取不到则返回
|
|
$redirect_bids = YqZsyTestService::getRandomBooks($uid,1);
|
|
$redirect_bids = YqZsyTestService::getRandomBooks($uid,1);
|
|
@@ -838,8 +838,8 @@ class ReadOauth
|
|
BookUserService::updateUser($uid, $data);
|
|
BookUserService::updateUser($uid, $data);
|
|
return '';
|
|
return '';
|
|
};
|
|
};
|
|
- Log::info('88888888888888888888888888');
|
|
|
|
- Log::info($redirect_bids);
|
|
|
|
|
|
+ //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);
|
|
@@ -879,8 +879,8 @@ class ReadOauth
|
|
if($record_url) return $record_url.'&'.$other_str;
|
|
if($record_url) return $record_url.'&'.$other_str;
|
|
//没有阅读记录
|
|
//没有阅读记录
|
|
$book_url = $this->getBookReaderUrl($yq_book_user->bid,$channel_id);
|
|
$book_url = $this->getBookReaderUrl($yq_book_user->bid,$channel_id);
|
|
- Log::info('dddddddddddddddddddddddddd');
|
|
|
|
- Log::info($book_url.'&'.$other_str);
|
|
|
|
|
|
+ //Log::info('dddddddddddddddddddddddddd');
|
|
|
|
+ //Log::info($book_url.'&'.$other_str);
|
|
return $book_url.'&'.$other_str;
|
|
return $book_url.'&'.$other_str;
|
|
}else{
|
|
}else{
|
|
//没有对应关系
|
|
//没有对应关系
|
|
@@ -910,8 +910,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);
|
|
|
|
|
|
+ //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),
|