|
@@ -1,7 +1,7 @@
|
|
|
<?php
|
|
|
|
|
|
namespace App\Http\Controllers\QuickApp\Order;
|
|
|
-
|
|
|
+use App\Modules\Statistic\Services\AdVisitStatService;
|
|
|
use App\Http\Controllers\QuickApp\BaseController;
|
|
|
use Illuminate\Http\Request;
|
|
|
use App\Modules\Subscribe\Services\BookOrderService;
|
|
@@ -263,6 +263,13 @@ class OrdersController extends BaseController
|
|
|
$chapter_model = new ChapterOrderService();
|
|
|
$page_size = $request->input('page_size', 15);
|
|
|
$chapter_order = $chapter_model->getByUid($this->uid, $page_size);
|
|
|
+ foreach ($chapter_order as $item) {
|
|
|
+ if ($item->fee == 0) {
|
|
|
+ $result = AdVisitStatService::getInfoV2($this->uid, $item->cid, ['UNLOCK', 'UNLOCK_2']);
|
|
|
+ //if ($result)$item->fee = '解锁';
|
|
|
+ $item->fee = '解锁';
|
|
|
+ }
|
|
|
+ }
|
|
|
return response()->pagination(new ChapterOrderTransformer(), $chapter_order);
|
|
|
}
|
|
|
|