|
|
@@ -864,7 +864,7 @@ public class serviceorder extends Controller {
|
|
|
/**
|
|
|
* 验证码校验
|
|
|
**/
|
|
|
- @API(title = "发送手机验证码", apiversion = R.ID20230215173203.v1.class, accesstoken = false)
|
|
|
+ @API(title = "验证码校验", apiversion = R.ID20230215173203.v1.class, accesstoken = false)
|
|
|
public String checkVerificationCode() throws YosException {
|
|
|
String customerphone = "";
|
|
|
long sa_workorderid=content.getLong("sa_workorderid");
|
|
|
@@ -890,10 +890,19 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
|
}
|
|
|
String code = content.getStringValue("code");
|
|
|
- if (!message_map.containsKey(customerphone) || !message_map.get(customerphone).check(code)) {
|
|
|
- return getErrReturnObject().setErrMsg("验证码错误或者过期").toString();
|
|
|
+ boolean isgeneralcompletioncode = Parameter.getBoolean(siteid, "isgeneralcompletioncode");
|
|
|
+ String generalcompletioncode=Parameter.getString(siteid, "generalcompletioncode");
|
|
|
+ if(isgeneralcompletioncode){
|
|
|
+ if(!code.equals(generalcompletioncode)){
|
|
|
+ if (!message_map.containsKey(customerphone) || !message_map.get(customerphone).check(code)) {
|
|
|
+ return getErrReturnObject().setErrMsg("验证码错误或者过期").toString();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (!message_map.containsKey(customerphone) || !message_map.get(customerphone).check(code)) {
|
|
|
+ return getErrReturnObject().setErrMsg("验证码错误或者过期").toString();
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|