public function delpushAction() { $pushid = (int) $this->getInput('pushid', 'get'); if (!$pushid) { $this->showError("operate.fail"); } $ds = $this->_getDataDs(); $pushDs = $this->_getPushDs(); $push = $pushDs->getPush($pushid); //TODO 权限 if ($this->_getPushDs()->deletePush($pushid)) { Wind::import('SRV:design.srv.vo.PwDesignDataSo'); $vo = new PwDesignDataSo(); $vo->setModuleid($push['module_id']); $vo->setFromType(PwDesignData::FROM_PUSH); $vo->setFromid($pushid); $list = $ds->searchData($vo, 1, 0); if ($list) { $data = array_shift($list); $extend = unserialize($data['extend_info']); $delImages = $extend['standard_image']; Wekit::load('design.srv.PwDesignImage')->clearFiles($push['module_id'], explode('|||', $delImages)); } $this->showMessage("operate.success"); } $this->showError("operate.fail"); }