Compare commits
2 Commits
a1c0f55472
...
7d894116dd
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d894116dd | |||
| 0804f7b762 |
@ -604,8 +604,10 @@ public class TMSSetupsImpl implements TMSSetups{
|
|||||||
SystemParamsOperation.getInstance().setAppId(data);
|
SystemParamsOperation.getInstance().setAppId(data);
|
||||||
}else if (TextUtils.equals(name, "qr_decimal_enable")) {
|
}else if (TextUtils.equals(name, "qr_decimal_enable")) {
|
||||||
SystemParamsOperation.getInstance().setQrDecimalEnable(parseBoolean(data));
|
SystemParamsOperation.getInstance().setQrDecimalEnable(parseBoolean(data));
|
||||||
}else if (TextUtils.equals(name, "qr_refund_enable")){
|
} else if (TextUtils.equals(name, "qr_refund_enable")){
|
||||||
SystemParamsOperation.getInstance().setQrRefundEnable(parseBoolean(data));
|
SystemParamsOperation.getInstance().setQrRefundEnable(parseBoolean(data));
|
||||||
|
} else if (TextUtils.equals(name, "tpdu_value")){
|
||||||
|
SystemParamsOperation.getInstance().setTpduValue(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import com.utsmyanmar.paylibs.isobuilder.ISOMode;
|
|||||||
import com.utsmyanmar.paylibs.model.MsgField;
|
import com.utsmyanmar.paylibs.model.MsgField;
|
||||||
import com.utsmyanmar.paylibs.utils.LogUtil;
|
import com.utsmyanmar.paylibs.utils.LogUtil;
|
||||||
import com.utsmyanmar.paylibs.utils.core_utils.ByteUtil;
|
import com.utsmyanmar.paylibs.utils.core_utils.ByteUtil;
|
||||||
|
import com.utsmyanmar.paylibs.utils.core_utils.SystemParamsOperation;
|
||||||
import com.utsmyanmar.paylibs.utils.enums.HostName;
|
import com.utsmyanmar.paylibs.utils.enums.HostName;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -18,6 +19,9 @@ public abstract class BaseISOMsgX {
|
|||||||
byte[] newSendBytes = EncodePackage.assembly(map, msgIdentifier, 0, "0000000000",hostName);
|
byte[] newSendBytes = EncodePackage.assembly(map, msgIdentifier, 0, "0000000000",hostName);
|
||||||
|
|
||||||
String BPCTPDU = "6005150000"; //UAT
|
String BPCTPDU = "6005150000"; //UAT
|
||||||
|
|
||||||
|
BPCTPDU = SystemParamsOperation.getInstance().getTpduValue();
|
||||||
|
|
||||||
// String BPCTPDU = "6005170000"; //PrePro
|
// String BPCTPDU = "6005170000"; //PrePro
|
||||||
|
|
||||||
if(isoMode == ISOMode.BOTH_HEADER_TPDU) {
|
if(isoMode == ISOMode.BOTH_HEADER_TPDU) {
|
||||||
|
|||||||
@ -1099,6 +1099,17 @@ public class SystemParamsOperation {
|
|||||||
saveSystemParamsSettings(params);
|
saveSystemParamsSettings(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTpduValue(String value) {
|
||||||
|
SystemParamsSettings params = getSystemParamsSettings();
|
||||||
|
params.setTpduValue(value);
|
||||||
|
saveSystemParamsSettings(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTpduValue(){
|
||||||
|
SystemParamsSettings params = getSystemParamsSettings();
|
||||||
|
return params.getTpduValue();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean getTpduStatus(){
|
public boolean getTpduStatus(){
|
||||||
SystemParamsSettings params = getSystemParamsSettings();
|
SystemParamsSettings params = getSystemParamsSettings();
|
||||||
return params.isTpdu_status();
|
return params.isTpdu_status();
|
||||||
|
|||||||
@ -132,6 +132,8 @@ public class SystemParamsSettings implements Serializable {
|
|||||||
|
|
||||||
private String lastSuccessTranx = "000001";
|
private String lastSuccessTranx = "000001";
|
||||||
|
|
||||||
|
private String tpduValue = "6005150000";
|
||||||
|
|
||||||
private String appId = "";
|
private String appId = "";
|
||||||
|
|
||||||
private String appKey = "";
|
private String appKey = "";
|
||||||
@ -310,6 +312,14 @@ public class SystemParamsSettings implements Serializable {
|
|||||||
this.disabledMessage = disabledMessage;
|
this.disabledMessage = disabledMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void setTpduValue(String tpduValue) {
|
||||||
|
this.tpduValue = tpduValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getTpduValue() {
|
||||||
|
return tpduValue;
|
||||||
|
}
|
||||||
|
|
||||||
public void setAppId(String appId) {
|
public void setAppId(String appId) {
|
||||||
this.appId = appId;
|
this.appId = appId;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user