Authored by yangyang

购物车log日志

@@ -6,6 +6,7 @@ use LibModels\Wap\Home\CartData; @@ -6,6 +6,7 @@ use LibModels\Wap\Home\CartData;
6 use LibModels\Wap\Home\OrderData; 6 use LibModels\Wap\Home\OrderData;
7 use Plugin\Helpers; 7 use Plugin\Helpers;
8 use Plugin\Images; 8 use Plugin\Images;
  9 +use Plugin\UdpLog;
9 10
10 /** 11 /**
11 * 12 *
@@ -37,6 +38,8 @@ class CartModel @@ -37,6 +38,8 @@ class CartModel
37 $addCart = CartData::addToCart($productSku, $buyNumber, $goodsType, $isEdit, $promotionId, $uid, $shoppingKey); 38 $addCart = CartData::addToCart($productSku, $buyNumber, $goodsType, $isEdit, $promotionId, $uid, $shoppingKey);
38 if ($addCart && isset($addCart['code'])) { 39 if ($addCart && isset($addCart['code'])) {
39 $result = $addCart; 40 $result = $addCart;
  41 + }else{
  42 + UdpLog::info('【购物车】校验参数传递auth','productSku:'.$productSku.'buyNumber:'.$buyNumber.'goodsType:'.$goodsType.'isEdit:'.$isEdit.'promotionId:'.$promotionId.'uid:'.$uid.'shoppingKey:'.$shoppingKey);
40 } 43 }
41 44
42 return $result; 45 return $result;
@@ -140,6 +143,7 @@ class CartModel @@ -140,6 +143,7 @@ class CartModel
140 143
141 do { 144 do {
142 if (empty($skuList)) { 145 if (empty($skuList)) {
  146 + UdpLog::info('【购物车】校验参数传递auth','skuList:'.$skuList);
143 break; 147 break;
144 } 148 }
145 149
@@ -178,6 +182,8 @@ class CartModel @@ -178,6 +182,8 @@ class CartModel
178 if ($remove && isset($remove['code'])) { 182 if ($remove && isset($remove['code'])) {
179 $result['code'] = $remove['code']; 183 $result['code'] = $remove['code'];
180 $result['message'] = $remove['message']; 184 $result['message'] = $remove['message'];
  185 + }else{
  186 + UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'sku_list:'.$sku_list.'shoppingKey:'.$shoppingKey.'hasPromotion:'.$hasPromotion);
181 } 187 }
182 188
183 return $result; 189 return $result;
@@ -209,6 +215,8 @@ class CartModel @@ -209,6 +215,8 @@ class CartModel
209 if ($add && isset($add['code'])) { 215 if ($add && isset($add['code'])) {
210 $result['code'] = $add['code']; 216 $result['code'] = $add['code'];
211 $result['message'] = $add['message']; 217 $result['message'] = $add['message'];
  218 + }else{
  219 + UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'sku_list:'.$sku_list.'hasPromotion:'.$hasPromotion);
212 } 220 }
213 221
214 return $result; 222 return $result;
@@ -229,6 +237,8 @@ class CartModel @@ -229,6 +237,8 @@ class CartModel
229 $product = CartData::cartProductData($uid, $skn); 237 $product = CartData::cartProductData($uid, $skn);
230 if (isset($product['code']) && $product['code'] === 200) { 238 if (isset($product['code']) && $product['code'] === 200) {
231 $result = self::procGoodsDetail($product['data'], $num); 239 $result = self::procGoodsDetail($product['data'], $num);
  240 + }else{
  241 + UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'skn:'.$skn);
232 } 242 }
233 243
234 return $result; 244 return $result;
@@ -248,6 +258,8 @@ class CartModel @@ -248,6 +258,8 @@ class CartModel
248 $product = CartData::giftProductData($skn, $promotionId); 258 $product = CartData::giftProductData($skn, $promotionId);
249 if (isset($product['code']) && $product['code'] === 200) { 259 if (isset($product['code']) && $product['code'] === 200) {
250 $result = self::procGoodsDetail($product['data']); 260 $result = self::procGoodsDetail($product['data']);
  261 + }else{
  262 + UdpLog::info('【购物车】校验参数传递auth','skn:'.$skn.'promotionId:'.$promotionId);
251 } 263 }
252 264
253 return $result; 265 return $result;
@@ -276,6 +288,8 @@ class CartModel @@ -276,6 +288,8 @@ class CartModel
276 if ($modify && isset($modify['code'])) { 288 if ($modify && isset($modify['code'])) {
277 $result['code'] = $modify['code']; 289 $result['code'] = $modify['code'];
278 $result['message'] = $modify['message']; 290 $result['message'] = $modify['message'];
  291 + }else{
  292 + UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'sku:'.$sku,'increaseNum:'.$increaseNum.'decreaseNum:'.$decreaseNum.'shoppingKey:'.$shoppingKey);
279 } 293 }
280 } while (0); 294 } while (0);
281 295
@@ -306,6 +320,8 @@ class CartModel @@ -306,6 +320,8 @@ class CartModel
306 if ($modify && isset($modify['code'])) { 320 if ($modify && isset($modify['code'])) {
307 $result['code'] = $modify['code']; 321 $result['code'] = $modify['code'];
308 $result['message'] = $modify['message']; 322 $result['message'] = $modify['message'];
  323 + }else{
  324 + UdpLog::info('【购物车】校验参数传递auth','uid:'.$uid.'swapData:'.$swapData.'shoppingKey:'.$shoppingKey);
309 } 325 }
310 } while (0); 326 } while (0);
311 327