|
@@ -648,7 +648,7 @@ class ChapterController extends BaseController
|
|
|
*/
|
|
|
private function isBookNeedCharge(int $bid, float $price)
|
|
|
{
|
|
|
- $book_order = BookOrderService::getRecordByuidBid($this->uid, $bid);
|
|
|
+ $book_order = $this->getOrderRecord($bid, 0);
|
|
|
if ($book_order) {
|
|
|
return false;
|
|
|
} else {
|
|
@@ -662,8 +662,8 @@ class ChapterController extends BaseController
|
|
|
*/
|
|
|
private function isChapterNeedCharge(int $bid, int $cid, float $price)
|
|
|
{
|
|
|
- $chapter_order = ChapterOrderService::checkIsOrderedStatic($this->uid, $bid, $cid);
|
|
|
- if ($chapter_order) {
|
|
|
+ $book_order = $this->getOrderRecord($bid, $cid);
|
|
|
+ if ($book_order) {
|
|
|
return false;
|
|
|
} else {
|
|
|
$user_info = $this->user_info;
|