geek 4 rokov pred
rodič
commit
e76390fa89
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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'),
             ]);