|  | @@ -9,7 +9,8 @@ import org.springframework.beans.factory.InitializingBean;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import com.fasterxml.jackson.databind.ObjectMapper;
 | 
	
		
			
				|  |  | +import com.alibaba.fastjson.JSON;
 | 
	
		
			
				|  |  | +import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  |  import com.keao.edu.thirdparty.exception.ThirdpartyException;
 | 
	
		
			
				|  |  |  import com.keao.edu.thirdparty.message.MessageSenderPlugin;
 | 
	
		
			
				|  |  |  import com.keao.edu.util.http.HttpUtil;
 | 
	
	
		
			
				|  | @@ -20,8 +21,6 @@ import com.keao.edu.util.http.HttpUtil;
 | 
	
		
			
				|  |  |  @Service
 | 
	
		
			
				|  |  |  public class MOxintongSMSPlugin implements MessageSenderPlugin, InitializingBean {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	private static ObjectMapper MAPPER = new ObjectMapper();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  	@Value("${Moxintong.username:1}")
 | 
	
		
			
				|  |  |  	private String username;
 | 
	
		
			
				|  |  |  	
 | 
	
	
		
			
				|  | @@ -49,7 +48,7 @@ public class MOxintongSMSPlugin implements MessageSenderPlugin, InitializingBean
 | 
	
		
			
				|  |  |  		} catch (Exception e) {
 | 
	
		
			
				|  |  |  			throw new ThirdpartyException("短信发送失败!", e);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		HashMap jsonObject = MAPPER.readValue(result, HashMap.class);
 | 
	
		
			
				|  |  | +		JSONObject jsonObject = JSON.parseObject(result);
 | 
	
		
			
				|  |  |  		if (jsonObject.get("code").toString().equals("0")) {
 | 
	
		
			
				|  |  |  			return true;
 | 
	
		
			
				|  |  |  		} else {
 | 
	
	
		
			
				|  | @@ -77,7 +76,7 @@ public class MOxintongSMSPlugin implements MessageSenderPlugin, InitializingBean
 | 
	
		
			
				|  |  |  		} catch (Exception e) {
 | 
	
		
			
				|  |  |  			throw new ThirdpartyException("短信发送失败!", e);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		HashMap jsonObject = MAPPER.readValue(result, HashMap.class);
 | 
	
		
			
				|  |  | +		JSONObject jsonObject = JSON.parseObject(result);
 | 
	
		
			
				|  |  |  		if (jsonObject.get("code").toString().equals("0")) {
 | 
	
		
			
				|  |  |  			return true;
 | 
	
		
			
				|  |  |  		} else {
 |