|
|
@@ -25,7 +25,10 @@ class CheckCompany
|
|
|
{
|
|
|
$params = $request->all();
|
|
|
$token = $request->header('d-token', '');
|
|
|
- if (!$token) Utils::throwError(ErrorConst::NOT_LOGIN);
|
|
|
+ if (!$token) {
|
|
|
+ $token = getProp($params, 'd_token');
|
|
|
+ if (!$token) Utils::throwError(ErrorConst::NOT_LOGIN);
|
|
|
+ }
|
|
|
|
|
|
if (env('CHECK_COMPANY')) {
|
|
|
$cpid = Site::getCpid();
|