|
@@ -129,20 +129,24 @@ class WelcomeController extends BaseController
|
|
|
|
|
|
// 获取派单信息
|
|
|
$adPositions = [];
|
|
|
-// if ($sendOrderId) {
|
|
|
-// $sendOrder = QappSendOrder::getSendOrderById($sendOrderId);
|
|
|
-// $channelAccount = QappChannelAccount::getByAccount(getProp($sendOrder, 'account'));
|
|
|
-// $adPositions = AdPositionService::getInstance()->getAdPositions($this->uid, getProp($channelAccount, 'id'));
|
|
|
-// }
|
|
|
+ if ($sendOrderId) {
|
|
|
+ $sendOrder = QappSendOrder::getSendOrderById($sendOrderId);
|
|
|
+ $channelAccount = QappChannelAccount::getByAccount(getProp($sendOrder, 'account'));
|
|
|
+ $adPositions = AdPositionService::getInstance()->getAdPositions($this->uid, getProp($channelAccount, 'id'));
|
|
|
+ }
|
|
|
|
|
|
// 配置
|
|
|
$data = [
|
|
|
- 'support' => $support,
|
|
|
- 'task_center' => [
|
|
|
+ 'support' => $support,
|
|
|
+ 'task_center' => [
|
|
|
'home_show' => 1,
|
|
|
'pay_back_alert_show' => 1,
|
|
|
],
|
|
|
- 'position' => [
|
|
|
+ 'add_desk_alert' => [
|
|
|
+ 'sign_out_app_show' => $sendOrderId ? 1 : 0,
|
|
|
+ 'sign_out_reader_show' => $sendOrderId ? 1 : 0,
|
|
|
+ ],
|
|
|
+ 'position' => [
|
|
|
'home_alert' => getProp($adPositions, 'home_alert', []),
|
|
|
'reader_banner' => getProp($adPositions, 'reader_banner', [])
|
|
|
]
|