public function countPhoneNumberViewedAction() { list($shopid, $uid) = $this->getInput(array('shopid', 'uid'), 'get'); $r = 0; if (empty($shopid)) { $this->output($r); } $shop = $this->_getShopDs()->getByShopId($shopid); if (empty($shop)) { $this->output($r); } $ip = $_SERVER["REMOTE_ADDR"]; Wind::import('EXT:4tschool.service.shop.dm.App_ShopPhone_Dm'); $dm = new App_ShopPhone_Dm(); $dm->setShopId($shopid)->setUID($uid)->setClientIP($ip); $r = $this->_getShopDs()->addShopPhoneChecked($dm); $this->output($r); }
public function addShopPhoneChecked(App_ShopPhone_Dm $dm) { return $this->loadShopPhoneCheckedDao()->add($dm->getdata()); }