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'),
             ]);