| | |
| | | import org.springframework.web.context.request.ServletRequestAttributes;
|
| | |
|
| | | import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.RedisManager;
|
| | |
|
| | | /**
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | // // 缓存uid的Key
|
| | | // String key = "activeUid_" + uuid;
|
| | | // |
| | | // // 缓存中是否存在uid
|
| | | // String cacheValue = redisManager.getCommonString(key);
|
| | | // if (cacheValue != null && cacheValue.trim().length() > 0) {
|
| | | // return;
|
| | | // }
|
| | | //
|
| | | // // 加入缓存 20分钟
|
| | | // redisManager.cacheCommonString("activeUid_" + uuid, uuid.toString(), 60 * 20);
|
| | | // |
| | | |
| | | // 接收券
|
| | | try {
|
| | | userSystemCouponService.receivedCoupon(uuid);
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | if (Constant.IS_OUTNET) {
|
| | | String key = "activeUid_" + uuid;
|
| | | // 缓存中是否存在uid
|
| | | String cacheValue = redisManager.getCommonString(key);
|
| | | if (cacheValue != null && cacheValue.trim().length() > 0) {
|
| | | return;
|
| | | }
|
| | | // 加入缓存 20分钟
|
| | | redisManager.cacheCommonString(key, uuid.toString(), 60 * 20);
|
| | | }
|
| | | }
|
| | | });
|
| | |
|
| | | Object[] args = joinPoint.getArgs();
|
| | | return joinPoint.proceed(args);
|
| | | return joinPoint.proceed(joinPoint.getArgs());
|
| | | }
|
| | |
|
| | | }
|