/home/daomenkou/protected/controllers/MController.php(9614)
9602 'isopen'=>$isopen, 9603 'pid'=>$_GET['pid'], 9604 'seat'=>$seat, 9605 'cartNum'=>$cartNum, 9606 'share_info'=>$share_info, 9607 ); 9608 //海报主图 9609 $imageUrl = $ProductCommon['P_PreviewPic'][0]; 9610 $imageUrl = productimg($imageUrl); 9611 if($imageUrl[0] != 'h'){ 9612 $imageUrl = 'http://weixin.daomenkou.cn/'.$imageUrl; 9613 } 9614 $imageData = file_get_contents($imageUrl); 9615 if($imageData){ 9616 $filetype = pathinfo($imageUrl, PATHINFO_EXTENSION); 9617 $base64 = 'data:image/' . $filetype . ';base64,' . base64_encode($imageData); 9618 $viewarray['poster_img'] = $base64; 9619 }else{ 9620 $viewarray['poster_img'] = $ProductCommon['P_PreviewPic'][0]; 9621 } 9622 if($user_id == 173441) { 9623 $this->renderPartial("infoNewest1", $viewarray); 9624 }else{ 9625 if($_GET['cid']==295184190){ 9626 $this->renderPartial("ymdetail", $viewarray);
#0 |
+
–
/home/daomenkou/protected/controllers/MController.php(9614): file_get_contents("http://www.daomenkou.cn/files/2014-8/201408181850071826.jpg") 9609 $imageUrl = $ProductCommon['P_PreviewPic'][0]; 9610 $imageUrl = productimg($imageUrl); 9611 if($imageUrl[0] != 'h'){ 9612 $imageUrl = 'http://weixin.daomenkou.cn/'.$imageUrl; 9613 } 9614 $imageData = file_get_contents($imageUrl); 9615 if($imageData){ 9616 $filetype = pathinfo($imageUrl, PATHINFO_EXTENSION); 9617 $base64 = 'data:image/' . $filetype . ';base64,' . base64_encode($imageData); 9618 $viewarray['poster_img'] = $base64; 9619 }else{ |
#1 |
+
–
/home/daomenkou/framework/web/actions/CInlineAction.php(49): MController->actionDetail() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#2 |
+
–
/home/daomenkou/framework/web/CController.php(308): CInlineAction->runWithParams(array("cid" => "68920", "pid" => "89432")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#3 |
+
–
/home/daomenkou/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction) 128 $filter=$this->itemAt($this->filterIndex++); 129 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 130 $filter->filter($this); 131 } 132 else 133 $this->controller->runAction($this->action); 134 } 135 } |
#4 |
+
–
/home/daomenkou/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#5 |
+
–
/home/daomenkou/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array(array(0 => "system.web.widgets.COutputCache + Three", "duration" => 1800, "varyByParam" => array("catid")))) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#6 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(282): CController->run("detail") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#7 |
+
–
/home/daomenkou/framework/web/CWebApplication.php(141): CWebApplication->runController("m/detail/cid/68920/pid/89432") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#8 |
+
–
/home/daomenkou/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#9 |
+
–
/home/daomenkou/index.php(57): CApplication->run() 52 header('Access-Control-Allow-Methods:*'); 53 // 响应头设置 54 header('Access-Control-Allow-Headers:content-type,token,id,userId'); 55 header("Access-Control-Request-Headers: Origin, X-Requested-With, content-Type, Accept, Authorization"); 56 57 Yii::createWebApplication($config)->run(); |