|  | @@ -18,6 +18,9 @@ import com.cooleshow.student.presenter.mine.FeedBackPresenter;
 | 
	
		
			
				|  |  |  import org.json.JSONException;
 | 
	
		
			
				|  |  |  import org.json.JSONObject;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import java.util.HashMap;
 | 
	
		
			
				|  |  | +import java.util.Map;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  import io.rong.imkit.utils.StatusBarUtil;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -30,29 +33,27 @@ import io.rong.imkit.utils.StatusBarUtil;
 | 
	
		
			
				|  |  |  public class FeedBackActivity extends BaseMVPActivity<ActivityFeedbackBinding, FeedBackPresenter> implements FeedBackContract.FeedBackView, View.OnClickListener {
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public void onClick(View view) {
 | 
	
		
			
				|  |  | -        switch (view.getId()){
 | 
	
		
			
				|  |  | +        switch (view.getId()) {
 | 
	
		
			
				|  |  |              case R.id.tv_submit:
 | 
	
		
			
				|  |  |                  String content = viewBinding.etContent.getText().toString().trim();
 | 
	
		
			
				|  |  | -                if (TextUtils.isEmpty(content)){
 | 
	
		
			
				|  |  | +                if (TextUtils.isEmpty(content)) {
 | 
	
		
			
				|  |  |                      ToastUtils.showShort("请输入您的反馈意见");
 | 
	
		
			
				|  |  |                      break;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  String mobileNo = viewBinding.etConnect.getText().toString().trim();
 | 
	
		
			
				|  |  | -                if (TextUtils.isEmpty(mobileNo)){
 | 
	
		
			
				|  |  | +                if (TextUtils.isEmpty(mobileNo)) {
 | 
	
		
			
				|  |  |                      ToastUtils.showShort("请输入您的邮箱或手机号");
 | 
	
		
			
				|  |  |                      break;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  | -                try {
 | 
	
		
			
				|  |  | -                    jsonObject.putOpt("content", content);
 | 
	
		
			
				|  |  | -                    jsonObject.putOpt("mobileNo", mobileNo);
 | 
	
		
			
				|  |  | -                } catch (JSONException e) {
 | 
	
		
			
				|  |  | -                    e.printStackTrace();
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                presenter.addSuggestion(jsonObject.toString());
 | 
	
		
			
				|  |  | +                Map<String, String> params = new HashMap<>();
 | 
	
		
			
				|  |  | +                params.put("clientType", "Android");
 | 
	
		
			
				|  |  | +                params.put("content", content);
 | 
	
		
			
				|  |  | +                params.put("mobileNo", mobileNo);
 | 
	
		
			
				|  |  | +                presenter.addSuggestion(params);
 | 
	
		
			
				|  |  |                  break;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      protected void onCreate(@Nullable Bundle savedInstanceState) {
 | 
	
		
			
				|  |  |          super.onCreate(savedInstanceState);
 |