소스 검색

feat():授权

geek 4 년 전
부모
커밋
e76390fa89
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/index/controller/Index.php

+ 1 - 1
application/index/controller/Index.php

@@ -33,7 +33,7 @@ class Index {
         $model = new VisitorModel();
         $visitorInfo = $model::where(['unionid' => Session::get('wxId')])->find();
         if (empty($visitorInfo)) {
-            $model::where(['unionid' => Session::get('wxId')])->insertGetId([
+            $model->insertGetId([
                 'visitorId' => $visitorId,
                 'unionid' => Session::get('wxId'),
             ]);