Authored by yangyang

购物车log日志

... ... @@ -6,6 +6,7 @@ use LibModels\Wap\Home\CartData;
use LibModels\Wap\Home\OrderData;
use Plugin\Helpers;
use Plugin\Images;
use Plugin\UdpLog;
/**
*
... ... @@ -37,6 +38,8 @@ class CartModel
$addCart = CartData::addToCart($productSku, $buyNumber, $goodsType, $isEdit, $promotionId, $uid, $shoppingKey);
if ($addCart && isset($addCart['code'])) {
$result = $addCart;
}else{
UdpLog::info('【购物车】校验参数传递auth','productSku:'.$productSku.'buyNumber:'.$buyNumber.'goodsType:'.$goodsType.'isEdit:'.$isEdit.'promotionId:'.$promotionId.'uid:'.$uid.'shoppingKey:'.$shoppingKey);
}
return $result;
... ... @@ -140,6 +143,7 @@ class CartModel
do {
if (empty($skuList)) {
UdpLog::info('【购物车】校验参数传递auth','skuList:'.$skuList);
break;
}
... ... @@ -178,6 +182,8 @@ class CartModel
if ($remove && isset($remove['code'])) {
$result['code'] = $remove['code'];
$result['message'] = $remove['message'];
}else{
UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'sku_list:'.$sku_list.'shoppingKey:'.$shoppingKey.'hasPromotion:'.$hasPromotion);
}
return $result;
... ... @@ -209,6 +215,8 @@ class CartModel
if ($add && isset($add['code'])) {
$result['code'] = $add['code'];
$result['message'] = $add['message'];
}else{
UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'sku_list:'.$sku_list.'hasPromotion:'.$hasPromotion);
}
return $result;
... ... @@ -229,6 +237,8 @@ class CartModel
$product = CartData::cartProductData($uid, $skn);
if (isset($product['code']) && $product['code'] === 200) {
$result = self::procGoodsDetail($product['data'], $num);
}else{
UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'skn:'.$skn);
}
return $result;
... ... @@ -248,6 +258,8 @@ class CartModel
$product = CartData::giftProductData($skn, $promotionId);
if (isset($product['code']) && $product['code'] === 200) {
$result = self::procGoodsDetail($product['data']);
}else{
UdpLog::info('【购物车】校验参数传递auth','skn:'.$skn.'promotionId:'.$promotionId);
}
return $result;
... ... @@ -276,6 +288,8 @@ class CartModel
if ($modify && isset($modify['code'])) {
$result['code'] = $modify['code'];
$result['message'] = $modify['message'];
}else{
UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'sku:'.$sku,'increaseNum:'.$increaseNum.'decreaseNum:'.$decreaseNum.'shoppingKey:'.$shoppingKey);
}
} while (0);
... ... @@ -306,6 +320,8 @@ class CartModel
if ($modify && isset($modify['code'])) {
$result['code'] = $modify['code'];
$result['message'] = $modify['message'];
}else{
UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'swapData:'.$swapData.'shoppingKey:'.$shoppingKey);
}
} while (0);
... ...