Skip to content

修复参数值为空bug#53

Open
yanxing wants to merge 1 commit intohongyangAndroid:masterfrom
yanxing:patch-1
Open

修复参数值为空bug#53
yanxing wants to merge 1 commit intohongyangAndroid:masterfrom
yanxing:patch-1

Conversation

@yanxing
Copy link

@yanxing yanxing commented Dec 23, 2015

//这样就不需要判断type值
/**
* 获取预约挂号和体检预约的医院信息列表
* @param type 不传 表示获取推荐医院,0表示获取推荐体检中心
* @param city 城市名
* @param objectCallBack
*/
public void getRecommendedHospital(String type, String city, ObjectCallBack objectCallBack){
String url= ConstantValue.SERVER_URL+ConstantValue.V_DEPARTMENT_SORT;
OkHttpUtils.post()
.url(url)
.addParams("v_department_mold_id",type)
.addParams("city",city)
.build()
.execute(objectCallBack);
}

//这样就不需要判断type值
 /**
     * 获取预约挂号和体检预约的医院信息列表
     * @param type 不传 表示获取推荐医院,0表示获取推荐体检中心
     * @param city 城市名
     * @param objectCallBack
     */
public void getRecommendedHospital(String type, String city, ObjectCallBack objectCallBack){
String url= ConstantValue.SERVER_URL+ConstantValue.V_DEPARTMENT_SORT;
OkHttpUtils.post()
.url(url)
.addParams("v_department_mold_id",type)
.addParams("city",city)
.build()
.execute(objectCallBack);
}
@Jiiiiiin
Copy link

Jiiiiiin commented Aug 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants