...
|
...
|
@@ -803,11 +803,12 @@ class CartModel |
|
|
* @param int $deliveryWay 配送方式,1表示普通快递,2表示顺丰速运
|
|
|
* @param int $paymentType 支付方式,1表示在线支付,2表示货到付款
|
|
|
* @param string $couponCode 优惠券码
|
|
|
* @param string $promotionCode 优惠码
|
|
|
* @param mixed $yohoCoin 使用的YOHO币数量
|
|
|
* @param int $redEnvelopes 红包
|
|
|
* @return array 接口返回的数据
|
|
|
*/
|
|
|
public static function orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode, $yohoCoin, $redEnvelopes)
|
|
|
public static function orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode,$promotionCode,$yohoCoin, $redEnvelopes)
|
|
|
{
|
|
|
$result = array('code' => 400, 'message' => self::ERROR_400_MESSAGE, 'data' => array());
|
|
|
|
...
|
...
|
@@ -815,7 +816,7 @@ class CartModel |
|
|
if (!empty($yohoCoin)) {
|
|
|
$yohoCoin = intval($yohoCoin) / 100;
|
|
|
}
|
|
|
$compute = CartData::orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode, $yohoCoin, $redEnvelopes);
|
|
|
$compute = CartData::orderCompute($uid, $cartType, $deliveryWay, $paymentType, $couponCode,$promotionCode,$yohoCoin, $redEnvelopes);
|
|
|
if ($compute && isset($compute['code'])) {
|
|
|
/* 商品价格明细 */
|
|
|
if (!empty($compute['data']['promotion_formula_list'])) {
|
...
|
...
|
|