Yfs/Api/Ad.php | ●●●●● patch | view | raw | blame | history |
Yfs/Api/Ad.php
@@ -8,7 +8,9 @@ public function getRules() { return array( 'getAd' => array( 'user_id' => array( 'name' => 'user_id', 'type' => 'string', 'require' => true, 'desc' => '用户id' ), ), ); } @@ -28,6 +30,7 @@ */ public function getAd(){ $rs = array('code' => 0, 'msg' => '', 'info' => array()); $res_avg = $data_daily_service->getUserDataAvg($this->user_id, $this->start_time, $this->end_time); $ad_service = new Domain_Ad(); $ad = $ad_service->getAd();