Compare commits

...

2 Commits

Author SHA1 Message Date
7d894116dd Merge remote-tracking branch 'origin/merge_latest_SIT' into merge_latest_SIT 2025-12-10 15:20:04 +07:00
0804f7b762 dynamic tpdu 2025-12-10 15:19:50 +07:00
4 changed files with 28 additions and 1 deletions

View File

@ -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);
} }
} }

View File

@ -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) {

View File

@ -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();

View File

@ -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;
} }