예제 #1
0
 public static function JpTodayEffect($ajkBrokerId)
 {
     //$comboClick = Bll_Ppc_NewPackageStatsBrokerDay::getComboClickInfo($ajkBrokerId, date('Ymd'), Model_Ppc_NewPackageStatsBrokerDay::SITE_TYPE_JP);
     $bidInfo = Bll_Plan_Bid_JpBidManage::todayBidClickAndCost($ajkBrokerId, date('Y-m-d'));
     $bidClick = intval($bidInfo['click']);
     $bidCost = $bidInfo['cost'];
     return Util_GlobalFunc::buildReturn(1, array('comboClick' => 0, 'bidCost' => $bidCost, 'bidClick' => $bidClick));
 }
예제 #2
0
 /**
  * @param $brokerId
  * @param $startDate
  * @param $endDate
  */
 public static function getBrokerBidClickJp($brokerId, $startDate, $endDate)
 {
     $startDate = date('Ymd', strtotime($startDate));
     $endDate = date('Ymd', strtotime($endDate));
     $result = array();
     for ($day = $startDate; $day <= $endDate; $day = date("Ymd", strtotime($day) + 86400)) {
         $jpDayBidClick = Bll_Plan_Bid_JpBidManage::todayBidClickAndCost($brokerId, date('Y-m-d', strtotime($day)));
         if (isset($result[$day])) {
             $result[$day] += $jpDayBidClick['click'];
         } else {
             $result[$day] = $jpDayBidClick['click'];
         }
     }
     return $result;
 }