Skip to content

Commit

Permalink
Merge pull request #9 from Comsenz/site-open-admin
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
ahuchjm authored Nov 11, 2020
2 parents d2f10c9 + 3cedc96 commit a31a1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function requestFrom()
$server = $request->getServerParams();
$headersStr = strtolower(json_encode($headers, 256));
$serverStr = strtolower(json_encode($server, 256));
if (strstr($server['HTTP_USER_AGENT'], 'miniprogram') || strstr($headersStr['X-App-Platform'], 'miniprogram')) {
if (strstr($serverStr, 'miniprogram') || strstr($headersStr, 'miniprogram')) {
return PubEnum::MinProgram;
}
app('log')->info('get_request_from_for_test_' . json_encode(['headers' => $headers, 'server' => $server], 256));
Expand Down

0 comments on commit a31a1b8

Please sign in to comment.