Commit c751dabc authored by wwccw0591's avatar wwccw0591

pc

parent f425c009
...@@ -435,7 +435,6 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -435,7 +435,6 @@ class RefundServiceModel extends \Business\AbstractModel
$orders = \Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$orderDao, 'getList'), array($orderWhere, "order_id as orderId,goods_amount as goodsAmount,order_amount as orderAmount,shipping_fee as shippingFee,order_sn as orderSn,payment_type as paymentType", $pageIndex, $pageSize, $order, \Our\ApiConst::oneDaySecond, array($storeId))); $orders = \Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$orderDao, 'getList'), array($orderWhere, "order_id as orderId,goods_amount as goodsAmount,order_amount as orderAmount,shipping_fee as shippingFee,order_sn as orderSn,payment_type as paymentType", $pageIndex, $pageSize, $order, \Our\ApiConst::oneDaySecond, array($storeId)));
$orders=$orderDao->convertOrder($orders['list'],'orderId'); $orders=$orderDao->convertOrder($orders['list'],'orderId');
echo json_encode($orders);exit;
$orderCommons = $orderCommonDao->getAllByOrderIds($orderIds, $orderCommonDao->orderCommonField); $orderCommons = $orderCommonDao->getAllByOrderIds($orderIds, $orderCommonDao->orderCommonField);
$orderCommons=$orderDao->convertOrder($orderCommons,'orderId'); $orderCommons=$orderDao->convertOrder($orderCommons,'orderId');
$orderGoods = \Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$orderGoodsDao, 'getOrderGoodsByRecIds'), array($orderGoodsId, $this->refundOrderGoodsField), \Our\ApiConst::oneDaySecond, array($storeId)); $orderGoods = \Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$orderGoodsDao, 'getOrderGoodsByRecIds'), array($orderGoodsId, $this->refundOrderGoodsField), \Our\ApiConst::oneDaySecond, array($storeId));
......
...@@ -1004,7 +1004,7 @@ class OrderModel extends \DAO\AbstractModel ...@@ -1004,7 +1004,7 @@ class OrderModel extends \DAO\AbstractModel
{ {
$convertResult = array(); $convertResult = array();
foreach ($orders as $key => $value) { foreach ($orders as $key => $value) {
$convertResult[$field] = $value; $convertResult[$value[$field]] = $value;
} }
return $convertResult; return $convertResult;
} }
......
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