浏览代码

Merge branch 'category_03_11_liu'

rkljw 1 月之前
父节点
当前提交
ce3fe8ed93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Middleware/Auth/FooMiddleware.php

+ 1 - 1
app/Middleware/Auth/FooMiddleware.php

@@ -55,7 +55,7 @@ class FooMiddleware implements MiddlewareInterface
                        ]
                    );
                 }
-                if($header['userurl'][0]){
+                if($header['userurl'] && $header['userurl'][0]){
                     $origin = $header['userurl'][0];
                     $data = [
                         'website_url'=>$origin