|
|
|
@ -388,7 +388,7 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void sendVerifyEmail(JSONObject device) {
|
|
|
|
|
public JSONObject sendVerifyEmail(JSONObject device) {
|
|
|
|
|
JSONObject client = clientManager.getClientInfo(device.getIntValue("client_id"));
|
|
|
|
|
JSONObject account = clientAccountMapper.findById(device.getString("account_id"));
|
|
|
|
|
if(client==null){
|
|
|
|
@ -398,6 +398,9 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
throw new NotFoundException("Account Not Found");
|
|
|
|
|
}
|
|
|
|
|
clientManager.sendVerifyEmail(client,account.getString("account_id"));
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
result.put("email",client.getString("contact_email"));
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|