记得上下班打卡 | git大法好,push需谨慎

Commit 0bbeb8ad authored by jiangxiulong's avatar jiangxiulong

token null

parent f5b6e0c9
...@@ -329,8 +329,13 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService { ...@@ -329,8 +329,13 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
nftOrder.setStoreName(storeName); nftOrder.setStoreName(storeName);
nftOrder.setOrderCode(orderCode); nftOrder.setOrderCode(orderCode);
nftOrder.setUserId(uid); nftOrder.setUserId(uid);
nftOrder.setUserName(StringUtils.defaultString(((String) token.get(CurrentUtil.TOKEN_NICKNAME)), "")); if (null == token) {
nftOrder.setUserMobile(StringUtils.defaultString(((String) token.get(CurrentUtil.TOKEN_MOBILE)), "")); nftOrder.setUserName("");
nftOrder.setUserMobile("");
} else {
nftOrder.setUserName(StringUtils.defaultString(((String) token.get(CurrentUtil.TOKEN_NICKNAME)), ""));
nftOrder.setUserMobile(StringUtils.defaultString(((String) token.get(CurrentUtil.TOKEN_MOBILE)), ""));
}
nftOrder.setPriceTotal(totalPrice); nftOrder.setPriceTotal(totalPrice);
nftOrder.setPriceCoupon(voucherPrice); nftOrder.setPriceCoupon(voucherPrice);
nftOrder.setStorePriceCoupon(storeVoucherPrice); nftOrder.setStorePriceCoupon(storeVoucherPrice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment