Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复参数值为空bug #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

修复参数值为空bug #53

wants to merge 1 commit into from

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