Authored by 王水玲
Committed by yyq

性能安全

... ... @@ -197,7 +197,10 @@ function setDefaultAddr(id, cb) {
$.ajax({
url: '/cart/address/setdefault',
type: 'POST',
data: {id: id}
data: {
id: id,
_csrf: csrfToken
}
}).done(function(data) {
if (data.code === 200 && cb && typeof cb === 'function') {
addrDefault = id;
... ...