|
|
@@ -23,7 +23,8 @@ class GroupActivityController extends BaseApiController
|
|
|
*/
|
|
|
public function categoryList()
|
|
|
{
|
|
|
- $result = GroupActivityLogic::categoryList();
|
|
|
+ $id = (int)$this->request->param('id');
|
|
|
+ $result = GroupActivityLogic::categoryList($id);
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
|
|
|
@@ -32,7 +33,7 @@ class GroupActivityController extends BaseApiController
|
|
|
*/
|
|
|
public function detail()
|
|
|
{
|
|
|
- $id = $this->request->param('id');
|
|
|
+ $id = (int)$this->request->param('id');
|
|
|
$result = GroupActivityLogic::detail($id,$this->userId);
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
@@ -41,7 +42,7 @@ class GroupActivityController extends BaseApiController
|
|
|
* 拼团订单详情
|
|
|
*/
|
|
|
public function orderDetail(){
|
|
|
- $order_id = $this->request->param('order_id');
|
|
|
+ $order_id = (int)$this->request->param('order_id');
|
|
|
$result = GroupActivityLogic::orderDetail($order_id,$this->request->domain());
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
@@ -50,7 +51,7 @@ class GroupActivityController extends BaseApiController
|
|
|
* 用户订单详情
|
|
|
*/
|
|
|
public function userOrderDetail(){
|
|
|
- $order_id = $this->request->param('order_id');
|
|
|
+ $order_id = (int)$this->request->param('order_id');
|
|
|
$result = GroupActivityLogic::userOrderDetail($order_id,$this->userId);
|
|
|
return $this->data($result);
|
|
|
}
|