|
@@ -4,6 +4,7 @@ namespace App\Modules\Book\Services;
|
|
|
|
|
|
use App\Modules\Book\Models\Book;
|
|
|
use App\Modules\Book\Models\Chapter;
|
|
|
+use App\Modules\SendOrder\Models\QappSendOrder;
|
|
|
use Hashids;
|
|
|
use Redis;
|
|
|
use App\Modules\Statistic\Services\WapVisitStatService;
|
|
@@ -74,6 +75,16 @@ class BookService
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public static function getVipSequence($bid,$distribution_channel_id,$send_order_id){
|
|
|
+ if(!$send_order_id) return 0;
|
|
|
+ $account_send_order = QappSendOrder::getSendOrderById($send_order_id);
|
|
|
+ $key = 'channel:chapterfee:setting:' . $distribution_channel_id;
|
|
|
+ if($account_send_order){
|
|
|
+ $key = 'channel:chapterfee:setting:' . $distribution_channel_id.':'.$account_send_order->account;
|
|
|
+ }
|
|
|
+ return Redis::hget($key, $bid);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public static function getPrice($book_info,$distribution_channel_id,$size,$account=''){
|
|
|
// 书默认--- 收费类型
|