public function index() { vendor("GuoYaoService", LIB_PATH . "\\Service"); define('DEBUG', false); $service = new GuoYaoService(); $service->readFromSPL(); //$service->synup(); //$service->updateFlag(); /* $headmodel = new OrderModel(); $find = $headmodel->where("orderNo = 'G01140307156'")->find(); unset($find['dno']); unset($find['synup']); unset($find['billNo']); unset($find['OrderInfoId']); unset($find['status']); print_r($find); */ }
<?php //定义项目名称和路径 define('APP_NAME', 'GuoyaoSOAP'); define('APP_PATH', realpath(".")); // 定义ThinkPHP框架路径 define('THINK_PATH', APP_PATH . '/../ThinkPHP2'); // 加载框架入口文件 require THINK_PATH . "/ThinkPHP.php"; //实例化一个网站应用实例 $App = new App(); $App->init(); if ($_REQUEST['debug'] == 'yes') { define('DEBUG', true); } else { define('DEBUG', false); } vendor("GuoYaoService", LIB_PATH . "\\Service"); $service = new GuoYaoService(); $service->synup(); if (C('LOG_RECORD')) { Log::save(); }
<?php //定义项目名称和路径 define('APP_NAME', 'GuoyaoSOAP'); define('APP_PATH', realpath(".")); // 定义ThinkPHP框架路径 define('THINK_PATH', APP_PATH . '/../ThinkPHP2'); // 加载框架入口文件 require THINK_PATH . "/ThinkPHP.php"; //实例化一个网站应用实例 $App = new App(); $App->init(); if ($_REQUEST['debug'] == 'yes') { define('DEBUG', true); } else { define('DEBUG', false); } vendor("GuoYaoService", LIB_PATH . "\\Service"); $service = new GuoYaoService(); $service->readFromSPL(); //$service->synup(); if (C('LOG_RECORD')) { Log::save(); }