|
@@ -27,13 +27,20 @@ class WelcomeController extends BaseController
|
|
|
$send_order = SendOrderService::getSendOrderStatic($this->send_order_id);
|
|
|
$distribution_channel_id = $send_order->distribution_channel_id;
|
|
|
$qappPackage = QappPackageService::getPackage($distribution_channel_id);
|
|
|
+
|
|
|
+ $showGzh = 0;
|
|
|
+ $sendOrderId = $this->send_order_id;
|
|
|
+ if ($sendOrderId && in_array($sendOrderId, explode(',', env('SHOW_GZH_SEND_ORDER_IDS')))) {
|
|
|
+ $showGzh = 1;
|
|
|
+ }
|
|
|
if ($send_order && $qappPackage) {
|
|
|
$this->sendOrderStatistic($send_order);//统计
|
|
|
return view('qapp.welcome')->with([
|
|
|
'package' => $qappPackage->package,
|
|
|
'hash_bid' => Hashids::encode($send_order->book_id),
|
|
|
'cid' => $send_order->chapter_id,
|
|
|
- 'send_order_id' => $this->send_order_id
|
|
|
+ 'send_order_id' => $this->send_order_id,
|
|
|
+ 'show_gzh' => $showGzh
|
|
|
]);
|
|
|
}
|
|
|
}
|