Revert typecasting for now #162

This commit is contained in:
Kendrick Chan 2018-08-13 14:50:44 +08:00
parent b3eb68346f
commit b5c67f1c91

View file

@ -321,8 +321,8 @@ class APIController extends Controller
$data = [
'first_name' => $cust->getFirstName(),
'last_name' => $cust->getLastName(),
'priv_third_party' => $cust->getPrivacyThirdParty(),
'priv_promo' => $cust->getPrivacyPromo(),
'priv_third_party' => (bool) $cust->getPrivacyThirdParty(),
'priv_promo' => (bool) $cust->getPrivacyPromo(),
];
$res->setData($data);
@ -1587,8 +1587,8 @@ class APIController extends Controller
$items[] = [
'id' => $item->getID(),
'title' => $item->getTitle(),
'qty' => (int) $item->getQuantity(),
'price' => (float) $item->getPrice(),
'qty' => $item->getQuantity(),
'price' => $item->getPrice(),
];
}