소스 검색

Merge branch 'dev'

master
부모
커밋
19e3b50712
1개의 변경된 파일6개의 추가작업 그리고 19개의 파일을 삭제
  1. +6
    -19
      producer/controllers/OrderController.php

+ 6
- 19
producer/controllers/OrderController.php 파일 보기

@@ -570,29 +570,16 @@ class OrderController extends ProducerBaseController
$favoritePointSale = User::getCurrent()->getFavoritePointSale() ;
/*if($favoritePointSale) {
$newPointSaleArray = [] ;
foreach($pointsSaleArray as $pointSale) {
if($pointSale['id'] != $favoritePointSale->id) {
$newPointSaleArray[] = $pointSale ;
}
else {
$theFavoritePointSale = $pointSale ;
if($favoritePointSale) {
foreach($pointsSaleArray as $key => $pointSale) {
if($pointSale['id'] == $favoritePointSale->id) {
unset($pointsSaleArray[$key]) ;
array_unshift($pointsSaleArray, $pointSale) ;
}
}
if(isset($theFavoritePointSale)) {
array_unshift($newPointSaleArray, $theFavoritePointSale) ;
}
}
else {
$newPointSaleArray = $pointsSaleArray ;
}*/
$newPointSaleArray = $pointsSaleArray ;
$json['points_sale'] = $newPointSaleArray;
$json['points_sale'] = $pointsSaleArray ;
// Commandes totales
$ordersArray = Order::searchAll([

Loading…
취소
저장