|
@@ -70,7 +70,7 @@ public class SmsService {
|
|
|
String cacheKey = "SMS_CODE_" + phone;
|
|
|
String content = Redis.use("weixin_doctor").get(cacheKey);
|
|
|
if (content != null && content.equals(code)) {
|
|
|
- Redis.use().del(cacheKey);
|
|
|
+ Redis.use("weixin_doctor").del(cacheKey);
|
|
|
return content;
|
|
|
}else {
|
|
|
return null;
|