Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b3fa2f

Browse files
committed
fix likeadmin_laravel框架bug
1 parent c9db60a commit 9b3fa2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Api/Controller/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function config()
3434
*/
3535
public function policy()
3636
{
37-
$type = $this->request->get('type/s', '');
37+
$type = $this->request->get('type', '');
3838
$result = IndexLogic::getPolicyByType($type);
3939
return $this->data($result);
4040
}

app/Api/Controller/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function oaAuthBind()
125125
*/
126126
public function getScanCode()
127127
{
128-
$redirectUri = $this->request->get('url/s');
128+
$redirectUri = $this->request->get('url');
129129
$result = LoginLogic::getScanCode($redirectUri);
130130
if (false === $result) {
131131
return $this->fail(LoginLogic::getError() ?? '未知错误');

0 commit comments

Comments
 (0)