예제 #1
0
 /**
  * get the product info in the campaign
  * if the pageSize = 0,the api will return all products
  */
 public function actionProductInfo()
 {
     $params = $this->getQuery();
     $accountId = $this->getAccountId();
     $pageSize = $page = 0;
     if (!empty($params['pageSize'])) {
         if (empty($params['page'])) {
             throw new BadRequestHttpException('missing param page');
         }
         $pageSize = intval($params['pageSize']);
         $page = intval($params['page']);
     }
     return Campaign::searchProductInfo($accountId, $pageSize, $page);
 }