123456789101112131415161718192021222324252627282930313233343536 |
- package com.yihu.platform.api;
- import com.yihu.platform.utils.ApiUtil;
- import com.yihu.platform.utils.StringUtil;
- import com.yihu.wsgw.api.InterfaceMessage;
- import net.sf.json.JSONException;
- import net.sf.json.JSONObject;
- /**
- * 帐户类API
- *
- * @author wengsb----yihu.com 2017年8月17日下午3:00:15
- */
- public class AccountApi {
- /**
- * 通过手机号获取用户信息
- *
- * @param msg
- * @return
- */
- public String getAccLoginInfo(InterfaceMessage msg) {
- try {
- UserApi api = new UserApi();
- return api.queryUserInfoByID(msg);
- } catch (JSONException e) {
- return ApiUtil.getRespJSON(-10000, "非标准json:[" + msg.getParam() + "]").toString();
- } catch (Exception e) {
- e.printStackTrace();
- return ApiUtil.getRespJSON(-14444, "加载异常!" + StringUtil.getException(e)).toString();
- }
- }
- }
|