ソースを参照

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