Commit 1a48efa0 by 吕明尚

解决优惠卷下单后消失的问题

parent 02c7238d
......@@ -224,6 +224,10 @@ public class QPServiceImpl implements QPService {
*/
@Override
public List<TuangouReceiptConsumeResponseEntity> consume(String code, int count, String openShopUuid) {
boolean exists = redisUtil.exists(ReceiptRdeisEnum.PREPARE.getValue() + code);
if (exists) {
redisUtil.delete(ReceiptRdeisEnum.PREPARE.getValue() + code);
}
String o = redisUtil.get(ReceiptRdeisEnum.MT_SESSION_KEY.getValue());
JSONObject sessionKey = new JSONObject(o);
String session = (String) sessionKey.get("access_token");
......
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