<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Edm\Web\Controller; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Edm\Type\EdmTaskItemSubscribeStatus; use Module\Edm\Type\EdmTaskItemVisitStatus; class IndexController extends ModuleBaseController { public function visit($bk8bg) { goto oCM87; DPZ3w: ModelUtil::update('edm_task_item', array('id' => $FhIQB, 'alias' => $lUrqI), array('visitStatus' => EdmTaskItemVisitStatus::VISITED)); goto RopFI; bgeOY: BizException::throwsIf('链接错误', count($NxvAF) != 2); goto DRXlr; DRXlr: $FhIQB = intval($NxvAF[0]); goto Ql8NR; RopFI: return Response::raw(file_get_contents(__DIR__ . '/empty.png'), array('Content-Type' => 'image/png', 'Cache-Control' => 'max-age=' . 3600 * 24)); goto MSF5d; oCM87: $NxvAF = explode('_', $bk8bg); goto bgeOY; Ql8NR: $lUrqI = trim($NxvAF[1]); goto DPZ3w; MSF5d: } public function unsubscribe($bk8bg) { goto WuMER; H4qk5: ModelUtil::update('edm_task_item', array('id' => $FhIQB, 'alias' => $lUrqI), array('subscribeStatus' => EdmTaskItemSubscribeStatus::UNSUBSCRIBED)); goto fwOTd; cENRh: $lUrqI = trim($NxvAF[1]); goto H4qk5; rSrDG: $FhIQB = intval($NxvAF[0]); goto cENRh; fwOTd: return Response::send(0, '取消订阅成功'); goto gjnPO; WuMER: $NxvAF = explode('_', $bk8bg); goto fpb33; fpb33: BizException::throwsIf('链接错误', count($NxvAF) != 2); goto rSrDG; gjnPO: } }