|
@@ -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();
|