Browse Source

园区详情

chenhao 4 years ago
parent
commit
0d3f0a401e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Activity.php

+ 2 - 2
application/api/controller/Activity.php

@@ -145,7 +145,7 @@ class Activity extends Api
         }
         if (!$user)  return $this->success('',[]);
 
-        $activityModel = new Activity();
+        $activityModel = new ActicityModel();
 
         $data = $activityModel->where('p_id',$user['p_id'])
             ->where('switch',1)
@@ -188,7 +188,7 @@ class Activity extends Api
 
         if (!isset($id) || empty($id)) return $this->error('参数错误');
 
-        $activityModel = new Activity();
+        $activityModel = new ActicityModel();
 
         $data = $activityModel->where('id',$id)
             ->find();