2ee99ef07976534feeb9f0697d46c8f461dd7169.svn-base 925 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.yihu.platform.api;
  2. import com.yihu.platform.utils.ApiUtil;
  3. import com.yihu.platform.utils.StringUtil;
  4. import com.yihu.wsgw.api.InterfaceMessage;
  5. import net.sf.json.JSONException;
  6. import net.sf.json.JSONObject;
  7. /**
  8. * 帐户类API
  9. *
  10. * @author wengsb----yihu.com 2017年8月17日下午3:00:15
  11. */
  12. public class AccountApi {
  13. /**
  14. * 通过手机号获取用户信息
  15. *
  16. * @param msg
  17. * @return
  18. */
  19. public String getAccLoginInfo(InterfaceMessage msg) {
  20. try {
  21. UserApi api = new UserApi();
  22. return api.queryUserInfoByID(msg);
  23. } catch (JSONException e) {
  24. return ApiUtil.getRespJSON(-10000, "非标准json:[" + msg.getParam() + "]").toString();
  25. } catch (Exception e) {
  26. e.printStackTrace();
  27. return ApiUtil.getRespJSON(-14444, "加载异常!" + StringUtil.getException(e)).toString();
  28. }
  29. }
  30. }