장바구니 추가시 포인트 계산 get_item_point 함수로 변경
This commit is contained in:
@ -271,11 +271,7 @@ else // 장바구니에 담기
|
||||
if ((int)$_POST['total_price'] !== (int)$total_price)
|
||||
die("Error..");
|
||||
|
||||
if($it['it_point_type']) {
|
||||
$point = floor(($it['it_price'] * ($it['it_point'] / 100) / 10)) * 10;
|
||||
} else {
|
||||
$point = $it['it_point'];
|
||||
}
|
||||
$point = get_item_point($it);
|
||||
// 포인트가 다름
|
||||
if ((int)$point !== (int)$_POST['it_point'] && $config['cf_use_point'])
|
||||
die("Error...");
|
||||
|
||||
Reference in New Issue
Block a user