| | |
| | | */
|
| | |
|
| | | public void saveSMSVCode(String phone, int type, String code) {
|
| | | if (!Constant.IS_OUTNET)
|
| | | return;
|
| | | String key = "smscode-" + phone + "-" + type;
|
| | | // 保存2分钟
|
| | | setString(key, code, 120);
|
| | |
| | | * @return
|
| | | */
|
| | | public String getSMSVCode(String phone, int type) {
|
| | | if (!Constant.IS_OUTNET)
|
| | | return "";
|
| | | // if (!Constant.IS_OUTNET)
|
| | | // return "";
|
| | | String key = "smscode-" + phone + "-" + type;
|
| | | // 保存2分钟
|
| | | return getString(key);
|
| | |
| | | * @param code
|
| | | */
|
| | | public void clearSMSVCode(String phone, int type) {
|
| | | if (!Constant.IS_OUTNET)
|
| | | return;
|
| | | // if (!Constant.IS_OUTNET)
|
| | | // return;
|
| | | String key = "smscode-" + phone + "-" + type;
|
| | | removeKey(key);
|
| | | }
|