Commit 6c634e12 authored by christ's avatar christ

ccw

parent 02391a95
...@@ -48,8 +48,8 @@ abstract class Controller_Abstract extends \Yaf\Controller_Abstract { ...@@ -48,8 +48,8 @@ abstract class Controller_Abstract extends \Yaf\Controller_Abstract {
$data['data']=array(); $data['data']=array();
$data['data'] =$this->req[NameConst::data]; $data['data'] =$this->req[NameConst::data];
if(APP_ENV=='test' || APP_ENV=='pre'){ if(APP_ENV=='test' || APP_ENV=='pre'){
$log = \Our\Log::getInstance(); // $log = \Our\Log::getInstance();
$log->write(json_encode($data)); // $log->write(json_encode($data));
} }
header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Origin: *");
header('Access-Control-Allow-Method: *'); header('Access-Control-Allow-Method: *');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment