|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\QuickApp;
|
|
|
|
|
|
use App\Consts\PushConst;
|
|
|
use App\Libs\Push\OPPOPush\OPPOPushCommon;
|
|
|
+use App\Libs\Utils;
|
|
|
use App\Modules\AdPosition\Services\AdPositionService;
|
|
|
use App\Modules\Channel\Services\QappSendOrderContentShieldConfigService;
|
|
|
use App\Modules\SendOrder\Models\QappSendOrder;
|
|
@@ -170,7 +171,8 @@ class WelcomeController extends BaseController
|
|
|
{
|
|
|
// 获取包名
|
|
|
$package = $request->header('x-package', '');
|
|
|
-
|
|
|
+ $brand = $request->header('x-brand', '');
|
|
|
+ $codeVersion = $request->header('x-Version', '');
|
|
|
// 获取客服信息
|
|
|
$supports = config('option.supports');
|
|
|
$support = getProp($supports, $package, (object)[]);
|
|
@@ -202,9 +204,9 @@ class WelcomeController extends BaseController
|
|
|
'home_alert' => getProp($adPositions, 'home_alert', []),
|
|
|
'reader_banner' => getProp($adPositions, 'reader_banner', []),
|
|
|
'open_alert' => getProp($adPositions, 'open_alert', []),
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ 'is_audit' => Utils::checkIsAudit($package, $brand, $codeVersion) ? 1: 0,
|
|
|
];
|
|
|
-
|
|
|
return response()->success($data);
|
|
|
}
|
|
|
}
|