Commit 8cf12630 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 21e3c4c4
......@@ -7,6 +7,8 @@ import com.mints.xunmi.utils.CommonUtils;
import com.mints.xunmi.manager.UserManager;
public interface Constant {
String XUNMI_NAME = "xunmi";
/**
* 获取TAGNAME
*/
......@@ -84,8 +86,8 @@ public interface Constant {
String FIRST_DEVICE_FLAG = "first_device_flag";
// 固定套餐onePrice 多价格套餐fourPrice
String PAY_PAGE_TYPE = "pay_page_type";
String PRICE_TYPE = "priceType";
String PAY_PAGE_TYPE = XUNMI_NAME+"pay_page_type";
String PRICE_TYPE = XUNMI_NAME+"priceType";
String SMS_CONTENT = "您的好友" + UserManager.getInstance().getMobile() + ",要添加你为【寻蜜】的紧急联系人,立即下载查看吧" + BuildConfig.MainIp + "share/shareFriend.html?channel=" + CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME");
String SHARE_TITLE = "寻蜜";
......
......@@ -18,38 +18,40 @@ public class UserManager {
private static UserManager _inst;
private AppPreferences ps;
public static final String tempName = "xunmi";
/**
* 游客 or 登录用户
*/
private static final String IS_TEMP_USER = "is_temp_user";
private static final String IS_TEMP_USER = tempName + "is_temp_user";
/**
* 用户ID
*/
private static final String USER_ID = "userId";
private static final String USER_ID = tempName + "userId";
/**
* 登陆状态ID
*/
private static final String TOKEN_ID = "tokenId";
private static final String TOKEN_ID = tempName + "tokenId";
/**
* 手机号
*/
private static final String MOBILE = "mobile";
private static final String MOBILE = tempName + "mobile";
/**
* 姓名
*/
private static final String REAL_NAME = "realName";
private static final String REAL_NAME = tempName + "realName";
/**
* vip是否有效
*/
private static final String VIP_FLAG = "vipFlag";
private static final String VIP_FLAG = tempName + "vipFlag";
/**
* vip是否永久
*/
private static final String VIP_FOREVER = "VIP_FOREVER";
private static final String VIP_FOREVER = tempName + "VIP_FOREVER";
private static final String CDK = "CDK";
private static final String CDK = tempName + "CDK";
private static final String CREATE_TIME = "CREATE_TIME";
private static final String CREATE_TIME = tempName + "CREATE_TIME";
public static UserManager getInstance() {
......
......@@ -282,6 +282,7 @@
android:background="#E1E1E1" />
<RelativeLayout
android:visibility="gone"
android:id="@+id/rlMyLegalright"
android:layout_width="match_parent"
android:layout_height="96pt"
......@@ -309,6 +310,7 @@
</RelativeLayout>
<View
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginLeft="100pt"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment