|
|
@@ -10,6 +10,7 @@ import kr.co.zumo.app.lifeplus.model.Model;
|
|
|
import kr.co.zumo.app.lifeplus.model.SuperModel;
|
|
|
import kr.co.zumo.app.lifeplus.model.module.PinModuleParser;
|
|
|
import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
+import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
|
|
|
/**
|
|
|
* CouponMallModel
|
|
|
@@ -92,13 +93,19 @@ public class CouponMallModel extends Model {
|
|
|
* @return
|
|
|
*/
|
|
|
public String getEncryptedUserId() {
|
|
|
+ String userId = super.getUserId();
|
|
|
+
|
|
|
+ if (StringUtil.isEmpty(userId)) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
try {
|
|
|
- return AES.encrypt(super.getUserId(), ResourceUtil.getString(R.string.aes_key));
|
|
|
+ return AES.encrypt(userId, ResourceUtil.getString(R.string.aes_key));
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
- return super.getUserId();
|
|
|
+ return userId;
|
|
|
}
|
|
|
|
|
|
public String getCoopCode() {
|