Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yangyang
9 years ago
Commit
948fccbb1e2005e00e1ebae9d6ed1febb8a4efc0
1 parent
4a143e14
购物车log日志
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
948fccb
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment