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