Authored by whb

修改配置

... ... @@ -20,10 +20,11 @@ class Bootstrap extends Yaf_Bootstrap_Abstract
defined('WEBSITE_DOMAIN_URL') || define('WEBSITE_DOMAIN_URL', $this->_config->website->domain);
$pathList = array(
$this->_config->application->brightKnight,
$this->_config->application->framework
$this->_config->application->brightKnight,
$this->_config->application->framework,
get_include_path(),
);
set_include_path(implode(PATH_SEPARATOR, $pathList));
set_include_path(implode(':', $pathList));
}
public function _initQin(Yaf_Dispatcher $dispatcher)
... ...
... ... @@ -82,13 +82,9 @@ class OrderController extends QLib_Actions_Default {
$code = $this->_get('code');
$statusArr=$list=array();
$info = YHMOrders_Models_Orders_Client:: getOrdersInfoByOrderCode($code);
print_r($info);
exit();
$user = YHMPassport_Models_Profile_Client::getByUid($info['buyer_uid']);
$info['nick_name'] = (isset($user['nick_name'])) ? $user['nick_name'] : "";
$goodsList = YHMOrders_Models_Orders_Client:: getGoodsByOrderCode($code);
// print_r($goodsList);
print_r($info);
foreach ($goodsList as $k => $v) {
$goodsinfo = YHMProduct_Models_Goods_Client::getOneByProductSkc($v['product_skc']);
... ...
... ... @@ -4,7 +4,7 @@
<table style="background-color: #E0E0E0; width: 100%;" >
<tr style="height: 30px">
<td width="40%">订单号 :<?= $info['order_code'] ?></td>
<td width="30%">订单状态:<?= YHMConfig_Orderstatus::$status_caption[$info['order_status']] ?></td>
<td width="30%">订单状态:<?php echo YHMConfig_Orderstatus::$status_caption[$info['order_status']] ?></td>
<td >下单时间:<?= date("Y-m-d h:i:s", $info['create_time']) ?></td>
</tr>
... ...
... ... @@ -17,7 +17,6 @@ class ConsoleController extends QLib_Actions_Default
{
//$this->disableLayout();
$deptId = $this->_get('dept_id');
## Begin 获取用户所在部门的权限资源 ##
$profilePurviewDept = Adminx_Models_Profile_Client::getProfilePurviewByDeptAndPid($this->_globalPid, $deptId);
$profilePurviewDeptIDS = array_keys($profilePurviewDept);
... ...
... ... @@ -17,9 +17,6 @@ class UserController extends QLib_Actions_Default
function indexAction()
{
//$rEQUEST = $_REQUEST;
//unset($rEQUEST[0]);
//$uri = $_SERVER['REQUEST_URI'];
$parameter = $this->_getRequests();
$total = Adminx_Models_Profile_Client::getProfileTotelByJoin($parameter);
... ...
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}\/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.+)$ /index.php [L]
\ No newline at end of file
... ...
... ... @@ -4,7 +4,6 @@ define('APPLICATION_PATH', dirname(__DIR__));
###########################################################################################
defined('Q_APPLICATION_ENV') || define('Q_APPLICATION_ENV', (ini_get('yaf.environ') ? ini_get('yaf.environ') : 'release'));
###########################################################################################
set_include_path(implode(PATH_SEPARATOR, array(get_include_path(), ini_get('yaf.library'))));
require_once dirname(__FILE__).'/../../QF1.1/Framework/Q/Autoloader.php';
if (!empty($_GET['_qdebug']) && $_GET['_qdebug'] == 'xhprof') {
$_beginTime = microtime(true);
... ... @@ -13,6 +12,7 @@ if (!empty($_GET['_qdebug']) && $_GET['_qdebug'] == 'xhprof') {
echo (microtime(true) - $_beginTime) . ' Start Xhprof Time.<br />';
}
$application = new Yaf_Application(APPLICATION_PATH . "/configs/application.ini");
error_reporting(0);
$application->bootstrap()->run();
if (!empty($_GET['_qdebug']) && $_GET['_qdebug'] == 'xhprof') {
echo '<br />' . (microtime(true) - $_beginTime) . ' End Run Time.<br />';
... ...
... ... @@ -12,8 +12,8 @@ class YHMConfig_Search {
* @var string
*/
public static $baseUrl = array(
'localing' => 'http://192.168.10.62:8080/shijisearch/',
'testing' => 'http://192.168.10.62:8080/shijisearch/',
'localing' => 'http://106.39.86.231:18080/shijisearch/',
'testing' => 'http://106.39.86.231:18080/shijisearch/',
'release' => 'http://10.171.116.186:8080/shijisearch/'
);
}
\ No newline at end of file
... ...
... ... @@ -165,7 +165,7 @@ class YHMOrders_Models_Orders_Client {
if ((int) $order_code < 1) {
return 0;
}
return self::dao()->getOrdersInfoByOrderCode((int) $order_code);
return self::dao()->getOrdersInfoByOrderCode($order_code);
}
/**
... ...
... ... @@ -194,7 +194,6 @@ class YHMOrders_Models_Orders_Dao extends YHMOrders_Dao {
* @return type
*/
function getOrdersInfoByOrderCode($order_code) {
echo $this->dao()->cache(false)->getSql(Orders\Order::SELECT_ORDERS_BY_ORDER_CODE, array('order_code' => $order_code));
return $this->dao()->cache(false)->fetchRow(Orders\Order::SELECT_ORDERS_BY_ORDER_CODE, array('order_code' => $order_code));
}
... ...
... ... @@ -35,7 +35,7 @@ class YHMProduct_Models_Goods_Client {
if ((int) $product_skc < 1) {
return 0;
}
return self::dao()->getOneByProductSkc((int) $product_skc);
return self::dao()->getOneByProductSkc($product_skc);
}
/**
... ...
[mongo]
MessageLoggers.proxys = 192.168.50.69:27017
PayLoggers.proxys = 192.168.50.69:27017
Product.proxys = 192.168.50.69:27017
\ No newline at end of file
MessageLoggers.proxys = 192.168.1.168:27017
PayLoggers.proxys = 192.168.1.168:27017
Product.proxys = 192.168.1.168:27017
\ No newline at end of file
... ...
... ... @@ -20,10 +20,11 @@ class Bootstrap extends Yaf_Bootstrap_Abstract
defined('WEBSITE_DOMAIN_URL') || define('WEBSITE_DOMAIN_URL', $this->_config->website->domain);
$pathList = array(
$this->_config->application->brightKnight,
$this->_config->application->framework
$this->_config->application->brightKnight,
$this->_config->application->framework,
get_include_path(),
);
set_include_path(implode(PATH_SEPARATOR, $pathList));
set_include_path(implode(':', $pathList));
}
public function _initQin(Yaf_Dispatcher $dispatcher)
... ...
... ... @@ -4,7 +4,6 @@ define('APPLICATION_PATH', dirname(__DIR__));
###########################################################################################
defined('Q_APPLICATION_ENV') || define('Q_APPLICATION_ENV', (ini_get('yaf.environ') ? ini_get('yaf.environ') : 'release'));
###########################################################################################
set_include_path(implode(PATH_SEPARATOR, array(get_include_path(), ini_get('yaf.library'))));
if (!empty($_GET['_qdebug']) && $_GET['_qdebug'] == 'xhprof') {
$_beginTime = microtime(true);
$shprof = new Q_Debug_Xhprof_Stat();
... ...