Explorar el Código

feat():授权

geek hace 4 años
padre
commit
e76390fa89
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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'),
             ]);