public function before($context)
 {
     $configs = BeanFinder::get('configs');
     $time = "[".Xdatetime::now()."]";
     $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
     $logPath = $configs->baiduUrlLogPath;
     error_log($time.$url."\n", 3, $logPath."baiduappurl.log");
     $this->cacher = DAL::get()->getCache(Cacher::CACHETYPE_APP);
     $nocache = $this->isNoCache();
     $key = $this->makeCachekey();
     $context->response->skipAction = false;
     $this->cacher->delete($key);
     $cacheResponse = $this->cacher->get($key);
     if ($cacheResponse && false == $nocache)
     {
         $context->response = $cacheResponse;
         $context->response->skipAction = true;
     }
     $this->cacheKey = $key;
 }
Esempio n. 2
0
        ?>
</label>    	
                  
                  <?php 
    }
}
?>
                </div>
                <div class="reason">
                    <textarea name="remark" id="remark" onkeyup="limitLength(value,200,'备注','remark')"><?php 
echo $telDoctorComment->comment;
?>
</textarea>
                    <div>
                    <a href="javascript:void(0);" onclick="insertAtCursor($('remark'), '<?php 
echo Xdatetime::now()->tostring();
?>
');">Time</a>
                    </div>
                </div>
                <div class='f12 ml20 mt20'>可添加100字以内备注</div>
                <?php 
if (isset($ticket)) {
    ?>
                <div class="handle">
                    <a href="javascript:;" class="green_btn on" onclick="forSubmit()" id="submit_btn">审核完成,进入下一条</a>
                    <input type="hidden" name="top" value="<?php 
    echo $doctorComment->top;
    ?>
"/>
                    <input type="hidden" name="confirm" value="1" />