public String getName() { String name = this.name; if (TextUtils.isEmpty(name)) { name = ContactsApp.getInstance().getResources().getString(R.string.putao_is_me); } return name; }
public CMSRequestData() { super(); app_version = SystemUtil.getAppVersion(ContactsApp.getInstance()); device = SystemUtil.getMachine(); location = LBSManager.getInstance().getLatitude() + "," + LBSManager.getInstance().getLongitude(); city = LBSManager.getInstance().getCity(); device_no = getDev_no(); sys_version = SystemUtil.getOS(); sign = MD5.toMD5(getDevice() + getTimestamp() + SECRITY); // 账号登陆模块还没写,先放在这里 // pt_token }
/** * 获取订单状态的显示值 add by hyl 2015-1-6 * * @return */ public String showStatus() { int statusResId = -1; PTOrderStatus pTOrderStatus = PTOrderStatus.getStatusBeen(pt_status); if (pTOrderStatus != null) { statusResId = PTOrderStatus.getStatusBeen(pt_status).getStatusStr(); } if (isTimeOut() && pt_status == PTOrderStatus.WAIT_BUYER_PAY.getStatusInt()) { statusResId = PTOrderStatus.ORDER_CLOSED.getStatusStr(); } if (statusResId != -1) { return ContactsApp.getInstance().getString(statusResId); } return ""; }
private void configUrl() { if (!TextUtils.isEmpty(mUrl)) { /* * 每次进入定位影响加载效率,改为十分钟超时 才重新定位,不然则取上一次定位信息 * update by hyl 2014-8-14 * old code : * if(latitude == LBSServiceGaode.DEFAULT_LATITUDE || latitude == 0) { LBSServiceGaode.activate(ContactsApp.getInstance(), this); } else { mUrl+="&lat="+String.valueOf(latitude)+"&lng="+String.valueOf(longitude); } */ LBSServiceGaode.process_activate(ContactsApp.getInstance(), this); // update by hyl 2014-8-14 LogUtil.d(TAG, "url=" + mUrl); } }